Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more new YAMLs and tweaks #1565

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

Deskimo
Copy link
Contributor

@Deskimo Deskimo commented Jan 13, 2017

some to try rectify the false negatives of Thanks You pages not being
recognised.

some to try rectify the false negatives of Thanks You pages not being
recognised.
@j-ro
Copy link
Contributor

j-ro commented Jan 13, 2017

Check out the conflicts?

Also, for that, finds really help before the success step

@Deskimo
Copy link
Contributor Author

Deskimo commented Jan 14, 2017

Sorry! will fix. re: removing the find command, we found that if we gave the thank you page time to load then looked for body content we were getting more reliable success readings. Otherwise we were getting an error on the find - presumedly b/c the page hadn't loaded fast enough for us to find anything. It could be put back in after the 20 sec wait as an extra step if it would help but didnt seem necessary.

@j-ro
Copy link
Contributor

j-ro commented Jan 14, 2017

May come down to different phantom versions or whatever you're using to fill these out I guess, but for us anyway, if regular success is false negativing, find usually fixes it (occasionally find + wait)

David added 6 commits January 16, 2017 16:28
We were able to improve our implementation of the find to handle the
issue rather than remove it so put these back in.
@j-ro
Copy link
Contributor

j-ro commented Jan 16, 2017

Still some conflicts, but also not super keen on merging these Senate ones (minus maybe Crapo, if you've had good experience with it). All of the others are working virtually 100% here, and your changes (removing finds, mainly) will cause them to error more.

@j-ro
Copy link
Contributor

j-ro commented Jan 19, 2017

Noting here that you're going to get a certain amount of random error, even with YAMLs that are perfectly constructed, at least we do with phantom, time outs, etc... We rerun failed jobs every day and that usually pushes this up towards 100% territory. Is this something you already do?

@Deskimo
Copy link
Contributor Author

Deskimo commented Jan 22, 2017

re: removing finds - agreed, i'm reversing those changes our end too. re: occasional intermittent issues yes our strategy is to re-try them also

@j-ro
Copy link
Contributor

j-ro commented Jan 22, 2017

Ok, left some comments. Can we revert all the Senate changes? None of them are substantive and all the Senate YAMLs are currently working well under high volume according to our system. And there's some merge errors in there. I commented the lines. But happy to merge the house ones!

Copy link
Contributor

@j-ro j-ro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert senate changes

- click_on:
- value: Submit
selector: input.btn
- find:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this is unnecessary, works without for almost all, can get others on retry

- click_on:
- value: Send
selector: "#side-search-btn"
- find:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep the find, works with it very well

- find:
- selector: h1
value: Thank you for emailing
=======
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one has a merge error and is working fine with no changes, let's revert this whole change

selector: "input.btn[value='Submit']"
- wait:
- value: 3
- find:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep the find, working great with it

- find:
- value: Thank You
selector: h1
=======
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge error here, and working fine with no changes, let's revert this change

- visit: http://www.heinrich.senate.gov/contact/write-martin
- select:
- name: topic
selector: '#contactForm select[name=''topic'']'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad syntax here, and generally these changes are unnecessary as this form is working great, can we revert?

'');
- javascript:
- value: document.querySelector('#side-search-btn').click();
- find:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary changes as this one works fine, revert?

selector: input.btn
- wait:
- value: 3
- find:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find instead of wait if we can, this works great with find and is faster

- value: document.querySelector("#message").value = document.querySelector("#message").value.replace(/"/g, '');
- click_on:
- value: Send My Message
selector: "#side-search-btn"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works great without find, let's revert

- click_on:
- value: Submit
selector: input.btn
=======
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge error, let's revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants