-
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.
* 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 --------- Co-authored-by: Ruban <[email protected]>
- Loading branch information
Showing
73 changed files
with
3,480 additions
and
1,755 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.20.0 | ||
20.12.2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.7.0.cjs | ||
yarnPath: .yarn/releases/yarn-3.8.5.cjs |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
declare global { | ||
namespace NodeJS { | ||
interface ProcessEnv { | ||
CI: string; | ||
CCD_UI_TESTS: string; | ||
FUNCTIONAL: string; | ||
ENVIRONMENT: string; | ||
URL: string; | ||
SERVICE_AUTH_PROVIDER_API_BASE_URL: string; | ||
CCD_DATA_STORE_URL: string; | ||
DM_STORE_URL: string; | ||
IDAM_WEB_URL: string; | ||
IDAM_API_URL: string; | ||
CIVIL_SERVICE_URL: string; | ||
CIVIL_GENERAL_APPLICATIONS_URL: string; | ||
WA_TASK_MGMT_URL: string; | ||
AAC_API_URL: string; | ||
CIVIL_ORCHESTRATOR_SERVICE_URL: string; | ||
PAYMENT_API_URL: string; | ||
WIRE_MOCK_SERVICE_URL: string; | ||
DEFAULT_PASSWORD: string; | ||
JUDGE_DEFAULT_PASSWORD: string; | ||
IAC_DEFAULT_PASSWORD: string; | ||
SYSTEM_USER_PASSWORD: string; | ||
SHOW_BROWSER_WINDOW: string; | ||
UI_SOFT_EXPECT: string; | ||
IDAM_STUB_ENABLED: string; | ||
RUN_ACCESSIBILITY_TESTS: string; | ||
S2S_SECRET: string; | ||
XUI_S2S_SECRET: string; | ||
} | ||
} | ||
} | ||
|
||
export {}; |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import BaseSteps from './base-steps'; | ||
import TestData from '../types/test-data'; | ||
|
||
export default abstract class BaseApiSteps extends BaseSteps { | ||
|
||
constructor(isSetupTest: boolean, testData: TestData) { | ||
super(testData); | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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) { | ||
this._page = page; | ||
this._axeBuilder = axeBuilder; | ||
} | ||
|
||
protected get page() { | ||
return this._page; | ||
} | ||
|
||
protected get axeBuilder() { | ||
return this._axeBuilder; | ||
} | ||
} |
Oops, something went wrong.