-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DTSCCI-1013 Playwright Setup Bootstrap Projects (#4951)
* playwright-e2e setup * adding users to playwright-e2e * add more users * enforcing one userKey per user * complete setup of playwright test repo * moved 'wa' folder to e2e * remove unneeded projects * add export to env.d.ts * updating gitignorec * adding playwright-core, required for axe-core * update yarn lock * fixed lint issues * playwright sonar exclusions * remove unneeded code and updated sonar properties * move wa folder back to root * updating yarn version * updating node version * setting version of yarn in project * setup eslint * updating eslint and adding prettier for codeceptjs tests and playwright tests * removing old eslint files * Fix eslint and prettier errors * only run prettier on playwright-e2e files * reconfigure eslint.config.mjs for javascript files * update eslint config so it takes into account js files * fixed all lint issues * remove unneccessary line * add prettier * updating eslint and adding prettier for codeceptjs tests and playwright tests * add prettier * Fix eslint and prettier errors * fixed all lint issues * Fix eslint and prettier errors * adding husky and lint-staged * add lint:staged command * only run prettier against playwright files * update script commands * custom run commands in series script and update husky, and update eslint.config.mjs * eslint, prettier and lint-stage configuration * fixed a few eslint errors * update eslint config * updating eslint and adding prettier for codeceptjs tests and playwright tests * Fix eslint and prettier errors * fixed all lint issues * custom run commands in series script and update husky, and update eslint.config.mjs * steps, factories and pages for auth setup and user data setup * remove uneeded config in lint * Only run no-dup-classes when relevant files in staged * updating totp-generator and cleaning code * update pre-commit * updating eslint and adding prettier for codeceptjs tests and playwright tests * fixed all lint issues * add prettier * custom run commands in series script and update husky, and update eslint.config.mjs * updating eslint and adding prettier for codeceptjs tests and playwright tests * steps, factories and pages for auth setup and user data setup * more test bootstrap changes * setup bootstrap processes: user data setup and user auth setup * adding playwright projects for setting up user data and cookies for quick authentication during tests * small edit of playwright test users * playwright-e2e setup * adding users to playwright-e2e * add more users * enforcing one userKey per user * complete setup of playwright test repo * moved 'wa' folder to e2e * remove unneeded code and updated sonar properties * move wa folder back to root * setup eslint * updating eslint and adding prettier for codeceptjs tests and playwright tests * removing old eslint files * Fix eslint and prettier errors * only run prettier on playwright-e2e files * reconfigure eslint.config.mjs for javascript files * update eslint config so it takes into account js files * fixed all lint issues * remove unneccessary line * add prettier * updating eslint and adding prettier for codeceptjs tests and playwright tests * add prettier * Fix eslint and prettier errors * fixed all lint issues * Fix eslint and prettier errors * adding husky and lint-staged * add lint:staged command * only run prettier against playwright files * update script commands * custom run commands in series script and update husky, and update eslint.config.mjs * eslint, prettier and lint-stage configuration * fixed a few eslint errors * update eslint config * updating eslint and adding prettier for codeceptjs tests and playwright tests * Fix eslint and prettier errors * fixed all lint issues * custom run commands in series script and update husky, and update eslint.config.mjs * steps, factories and pages for auth setup and user data setup * remove uneeded config in lint * Only run no-dup-classes when relevant files in staged * updating totp-generator and cleaning code * update pre-commit * update typescript dependency * update typescript * update typescript * Merge branch 'DTSCCI-865-eslint-and-lint-staged-and-husky-setup' into playwright-setup-bootstrap-projects * small code changes * reduce information on page accessibility failures * changed axebuilder to instance rather than singleton * update toHaveNoViolationsCache * update violations * update yarn lock * Delete .env * remove eslint-plugin-prettier * update yarn.lock * update baseRequests to verify responseJson/responseText when retryRequest or request is called * Update method names in base-request * update base request --------- Co-authored-by: Ruban <[email protected]>
- Loading branch information
Showing
51 changed files
with
941 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import AxeBuilder from '@axe-core/playwright'; | ||
import { Page } from '@playwright/test'; | ||
|
||
export default abstract class BasePageFactory { | ||
private _page: Page; | ||
private _axeBuilder: AxeBuilder; | ||
|
||
constructor(page: Page, axeBuilder: AxeBuilder) { | ||
constructor(page: Page) { | ||
this._page = page; | ||
this._axeBuilder = axeBuilder; | ||
} | ||
|
||
protected get page() { | ||
return this._page; | ||
} | ||
|
||
protected get axeBuilder() { | ||
return this._axeBuilder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.