Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate playwrite e2e test in preview #3803

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
62fcd6f
update playwright config
david-gimelle Jul 9, 2024
b1d7bd2
improve reliability of staff search tests
david-gimelle Jul 10, 2024
9bb16b8
Merge branch 'master' into DTSSE-5303
david-gimelle Jul 10, 2024
d4aa98d
Merge branch 'master' into DTSSE-5303
david-gimelle Jul 12, 2024
844734a
Merge branch 'master' into DTSSE-5303
david-gimelle Jul 15, 2024
7038675
Add Retry Mechanism in global search
david-gimelle Jul 15, 2024
dbe4d9f
cleanup playwright config
david-gimelle Jul 15, 2024
a66ffb7
skip all playwright test but login tests
david-gimelle Jul 16, 2024
44c0567
deactivate login test
david-gimelle Jul 16, 2024
a954b14
add playwrightE2E test after codeceptjs tests
david-gimelle Jul 16, 2024
d22c550
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 16, 2024
9ce5619
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 17, 2024
559cb55
only playwright
david-gimelle Jul 17, 2024
3046b2a
add codeceptjs test too
david-gimelle Jul 17, 2024
792b1ba
Add some log4j configuration
david-gimelle Jul 17, 2024
8e3cd64
only PR
david-gimelle Jul 17, 2024
073d87e
remove logs
david-gimelle Jul 17, 2024
7feadb1
add codeceptjs
david-gimelle Jul 17, 2024
e43aec1
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 18, 2024
42236cc
run only Codeceptjs tests
david-gimelle Jul 18, 2024
947574f
reactivate all pw tests
david-gimelle Jul 18, 2024
e2579b4
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 22, 2024
4904a20
clean up
david-gimelle Jul 22, 2024
19f589b
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 22, 2024
edd3467
only all PW
david-gimelle Jul 22, 2024
477c4ec
put codecept again
david-gimelle Jul 23, 2024
a1fc5fb
all CDC +PW
david-gimelle Jul 23, 2024
49875ce
Merge branch 'master' into add-playwright-ci
david-gimelle Jul 23, 2024
2a34ad0
run only 17 CDC
david-gimelle Jul 23, 2024
405c4d6
Merge branch 'add-playwright-ci' of github.com:hmcts/rpx-xui-webapp i…
david-gimelle Jul 23, 2024
97b9a82
only PW
david-gimelle Jul 23, 2024
52b69ae
only codecept
david-gimelle Jul 23, 2024
01e4465
only PW
david-gimelle Jul 24, 2024
29df998
17 pw and 17 cdc
david-gimelle Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac

## Running pure playwright end-to-end tests

Run `HEAD=true APPBASEURL=https://manage-case.aat.platform.hmcts.net yarn test:fullfunctional2` to execute the pure playwright end-to-end tests on aat via [Playwright](https://playwright.dev/).
Run `HEAD=true APPBASEURL=https://manage-case.aat.platform.hmcts.net yarn test:playwrightE2E` to execute the pure playwright end-to-end tests on aat via [Playwright](https://playwright.dev/).

## Running Consumer Driven Contract tests (pact)

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@
"test:smoke:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/smoke.conf.js --local",
"test:crossbrowser": "protractor ./test/e2e/config/crossbrowser.conf.js",
"test:fullfunctional": "yarn run test:xuiIntegration && yarn run test:functionalApiE2e",
"test:fullfunctional2": "yarn playwright install && npx playwright test --project chromium",
"test:playwrightE2E": "yarn playwright install && npx playwright test --project chromium",
"test:fullfunctional:local": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/fullfunctional.conf.js --local",
"test:functional1": "yarn run test:xuiIntegration && yarn run test:functionalApiE2e",
"test:functional_old": "yarn test:api && yarn run test:xuiIntegration && yarn run test:codeceptE2E",
"test:functional": "npm-run-all -p -l -n -c test:api test:xuiIntegration test:codeceptE2E",
"test:functional_old2": "npm-run-all -p -l -n -c test:api test:xuiIntegration test:codeceptE2E test:playwrightE2E",
"test:functional": "npm-run-all -p -l -n -c test:codeceptE2E test:playwrightE2E",
"test:functional:backup": "webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/conf.js --local",
"test:functional:local": "yarn test:ngIntegration && webdriver-manager update --versions.chrome 2.40 && protractor ./test/e2e/config/functional.conf.js --local",
"test:functionalApiE2e": "yarn run test:api && yarn run test:codeceptE2E",
Expand Down
1 change: 0 additions & 1 deletion playwright_tests/E2E/case-flags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ test('View case flag', async ({ page }) => {
await checkTableCellContent(page, tableName, 4, 1, "Test auto comment");
await checkTableCellContent(page, tableName, 4, 2, "05 Feb 2024");
await checkTableCellContent(page, tableName, 4, 4, "REQUESTED");

});

async function loginExUIWithCaseFlag(page) {
Expand Down
4 changes: 2 additions & 2 deletions playwright_tests/E2E/steps/login-steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export async function signIn(page: any, userIdentifier: string, goToCaseBaseURL:
await page.getByLabel("Password").fill(matchingUsers[0].key);
await page.getByRole("button", { name: "Sign in" }).click();
console.log("Signed in as " + email);
}

}

export async function signOut(page) {
try {
Expand Down
2 changes: 1 addition & 1 deletion test_codecept/e2e/features/app/TCCreateCase_1.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@fullfunctional @test @functional_enabled
@fullfunctional @test @functional_enablNOT

Feature: Test case type case creation and case details validations Part 1

Expand Down
2 changes: 1 addition & 1 deletion test_codecept/e2e/features/app/TCCreateCase_2.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ignore @fullfunctional @test @functional_enabled
@ignore @fullfunctional @test @functional_enablNOT
Feature: Test case type case creation and case details validations Part 2

Background:
Expand Down
2 changes: 1 addition & 1 deletion test_codecept/e2e/features/app/TCCreateCase_3.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@fullfunctional @test @ignore @functional_enabled
@fullfunctional @test @ignore @functional_enablNOT
Feature: Test case type case creation and case details validations Part 3

Background:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@fullfunctional @test @functional_enabled
@fullfunctional @test @functional_enablNOT
Feature: Test case type case list and find case workflow

Background:
Expand Down