Skip to content

Instantly share code, notes, and snippets.

@Marlena
Created June 8, 2011 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marlena/1015141 to your computer and use it in GitHub Desktop.
Save Marlena/1015141 to your computer and use it in GitHub Desktop.
What I check for when I do code review for AMO selenium tests
Filename matches first classname
* filename is lowercase with underscores between words
* class name is camelcase and THE SAME as file name
Files with tests do not contain "self.selenium"
Locators are in CSS - (btw css can do children)
http://www.w3.org/TR/CSS2/selector.html
Check the locators with firefinder
Is it random enough? - tests should not rely on the presence of a particular addon unless it is a test specifically for that addon
Will this test/page object over-write other work being done - it's always worth having a glance through the current set of pull requests to make sure there won't be any duplicated code:
https://github.com/mozilla/Addon-Tests/pulls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment