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

Test Automation - clean up #61

Merged
merged 5 commits into from
Oct 11, 2021
Merged

Conversation

kdzwinel
Copy link
Member

@kdzwinel kdzwinel commented Oct 1, 2021

While writing instructions for test automation I realized there are couple of rough edges that I decided to fix:

  • click to play didn't have "results" global variable
  • nit: moved click-to-play's JS code from HTML to separate JS file
  • some tests were returning error message as a value - I changed that so that value is null when test fails and error is in separate property
  • some tests had value in result property while the standard is value
  • some tests were 2 levels deep (e.g. when we had multiple results from an iframe) results.results[0].value[0].value - I flattened them (so that all tests are results.results[0].value) - see screenshots below

BEFORE:👹
NOT-flat-results

AFTER:😇
flat-results

const downloadButton = document.querySelector('#download');
downloadButton.addEventListener('click', () => downloadTheResults());
</script>
<script src='./main.js'></script>
Copy link
Member Author

Choose a reason for hiding this comment

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

moved JS code to separate file

privacy-protections/click-to-load/main.js Show resolved Hide resolved
@jonathanKingston
Copy link
Collaborator

LOOKS_GREAT_TO_ME

@jonathanKingston jonathanKingston merged commit 7c52c55 into main Oct 11, 2021
@jonathanKingston jonathanKingston deleted the konrad/automatic-tests-fixes branch October 11, 2021 14:55
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