Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Latest commit

 

History

History
91 lines (54 loc) · 2.08 KB

helpers.md

File metadata and controls

91 lines (54 loc) · 2.08 KB

Table of Contents

Devices

Devices module.

devicesToTest

Devices selected from playwright list of mobile devices available for browser emulation

Helpers

Helpers module. Provides methods to be used across the project.

Helpers

Class Helpers.

takeScreenshot

Takes .png screenshot of full page of pageobject.page instance and saves it to process.cwd() + screenshots directory.

Filename is concat of expected test status, browser type, test title and Date.now().

Parameters
  • mochaInstance object instance of the mocha test runner, i.e. this
  • pageobject object instance of the pageobject class, i.e. Homepage
  • expectedTestStatus string passed or failed
  • browser string type of browser we are testing, i.e. 'chromium', 'webkit', 'firefox'

Localization

Localized data for different culture versions of Page Objects of the tested website.

localeHomepage

Localization for Homepage Page Object

localeServices

Localization for Services Page Object

localeJobOfferDetail

localization for JobOfferDetail PageObject Contains localizations for 'clones' of the same page, e.g. /senior-test-engineer, /test-engineer, etc. Those are same pages, just with different data

Type: Array