B2G/QA/Automation/Style Guide/General Concepts
< B2G | QA | Automation | Style Guide
Jump to navigation
Jump to search
General Concepts
Web Testing
End-to-end Testing
The Page Object Pattern
TBD - jlorenzo
- where to call marionette's APIs
- why a page class shouldn't import data from the test
- All page objects should inherit from
Page
in page.py. - Page objects should not do asserts. This should be done within the test.
- Each page should be grouped within one module.
- If using multiple words to describe a module separate them with underscores '_'
- Single quotes (') should be used instead of double (") throughout.
- Methods should have a single purpose.