Skip to content

Commit 4dd8ec2

Browse files
committed
refactor: per comments review
1 parent 0c8bf06 commit 4dd8ec2

File tree

5 files changed

+63
-10
lines changed

5 files changed

+63
-10
lines changed

.github/workflows/simorgh-unit-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
if: steps.cache.ohutputs.cache-hit != 'true'
3737
run: |
3838
rm -rf node_modules
39-
git config --global user.email "DESimorghMaintainers@bbc.co.uk"
40-
git config --global user.name "ws-simorgh-unified-framework"
4139
git config --global url.https://${{ secrets.WS_UTF_AUTH }}@github.com/.insteadOf https://github.com/
4240
./scripts/installNodeModules.sh
4341

ws-nextjs-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@bbc/unified-web-e2e-framework": "github:bbc/unified-web-e2e-framework#v2.1.8",
51+
"@playwright/test": "^1.52.0",
5152
"next": "16.1.7",
5253
"sharp": "0.34.5"
5354
}

ws-nextjs-app/playwright/specs/homePage.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/* eslint-disable cypress/no-async-tests */
2-
import { test, expect } from '@playwright/test';
2+
import { test, expect } from '@bbc/unified-web-e2e-framework';
33
import runUrlValidationTest from '../support/helpers/runUrlValidationTest';
44

55
const testSuites = [
66
{
77
path: '/arabic',
88
service: 'arabic',
9-
variant: undefined,
109
},
1110
{
1211
path: '/dari',

ws-nextjs-app/playwright/specs/setupCheck.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// import { test, expect } from '@bbc/unified-web-e2e-framework';
1+
/* eslint-disable cypress/no-async-tests */
2+
import { test, expect } from '@bbc/unified-web-e2e-framework';
23

3-
// test('Verify page title', async ({ page }) => {
4-
// await page.goto('https://www.bbc.co.uk/');
5-
// expect(await page.title()).toBe('BBC - Home');
6-
// });
7-
import { test, expect } from '@playwright/test';
4+
test('Verify page title', async ({ page }) => {
5+
await page.goto('https://www.bbc.co.uk/');
6+
expect(await page.title()).toBe('BBC - Home');
7+
});
88

99
test.describe('Home Page - Arabic', () => {
1010
test('should load and display expected content', async ({ page }) => {

yarn.lock

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5092,6 +5092,17 @@ __metadata:
50925092
languageName: node
50935093
linkType: hard
50945094

5095+
"@playwright/test@npm:^1.52.0":
5096+
version: 1.58.2
5097+
resolution: "@playwright/test@npm:1.58.2"
5098+
dependencies:
5099+
playwright: "npm:1.58.2"
5100+
bin:
5101+
playwright: cli.js
5102+
checksum: 10/58bf90139280a0235eeeb6049e9fb4db6425e98be1bf0cc17913b068eef616cf67be57bfb36dc4cb56bcf116f498ffd0225c4916e85db404b343ea6c5efdae13
5103+
languageName: node
5104+
linkType: hard
5105+
50955106
"@polka/url@npm:^1.0.0-next.24":
50965107
version: 1.0.0-next.29
50975108
resolution: "@polka/url@npm:1.0.0-next.29"
@@ -11615,6 +11626,16 @@ __metadata:
1161511626
languageName: node
1161611627
linkType: hard
1161711628

11629+
"fsevents@npm:2.3.2":
11630+
version: 2.3.2
11631+
resolution: "fsevents@npm:2.3.2"
11632+
dependencies:
11633+
node-gyp: "npm:latest"
11634+
checksum: 10/6b5b6f5692372446ff81cf9501c76e3e0459a4852b3b5f1fc72c103198c125a6b8c72f5f166bdd76ffb2fca261e7f6ee5565daf80dca6e571e55bcc589cc1256
11635+
conditions: os=darwin
11636+
languageName: node
11637+
linkType: hard
11638+
1161811639
"fsevents@npm:^2.3.3, fsevents@npm:~2.3.2":
1161911640
version: 2.3.3
1162011641
resolution: "fsevents@npm:2.3.3"
@@ -11625,6 +11646,15 @@ __metadata:
1162511646
languageName: node
1162611647
linkType: hard
1162711648

11649+
"fsevents@patch:fsevents@npm%3A2.3.2#optional!builtin<compat/fsevents>":
11650+
version: 2.3.2
11651+
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#optional!builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
11652+
dependencies:
11653+
node-gyp: "npm:latest"
11654+
conditions: os=darwin
11655+
languageName: node
11656+
linkType: hard
11657+
1162811658
"fsevents@patch:fsevents@npm%3A^2.3.3#optional!builtin<compat/fsevents>, fsevents@patch:fsevents@npm%3A~2.3.2#optional!builtin<compat/fsevents>":
1162911659
version: 2.3.3
1163011660
resolution: "fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1"
@@ -15918,6 +15948,30 @@ __metadata:
1591815948
languageName: node
1591915949
linkType: hard
1592015950

15951+
"playwright-core@npm:1.58.2":
15952+
version: 1.58.2
15953+
resolution: "playwright-core@npm:1.58.2"
15954+
bin:
15955+
playwright-core: cli.js
15956+
checksum: 10/8a98fcf122167e8703d525db2252de0e3da4ab9110ab6ea9951247e52d846310eb25ea2c805e1b7ccb54b4010c44e5adc3a76aae6da02f34324ccc3e76683bb1
15957+
languageName: node
15958+
linkType: hard
15959+
15960+
"playwright@npm:1.58.2":
15961+
version: 1.58.2
15962+
resolution: "playwright@npm:1.58.2"
15963+
dependencies:
15964+
fsevents: "npm:2.3.2"
15965+
playwright-core: "npm:1.58.2"
15966+
dependenciesMeta:
15967+
fsevents:
15968+
optional: true
15969+
bin:
15970+
playwright: cli.js
15971+
checksum: 10/d89d6c8a32388911b9aff9ee0f1a90076219f15c804f2b287db048b9e9cde182aea3131fac1959051d25189ed4218ec4272b137c83cd7f9cd24781cbc77edd86
15972+
languageName: node
15973+
linkType: hard
15974+
1592115975
"please-upgrade-node@npm:^3.2.0":
1592215976
version: 3.2.0
1592315977
resolution: "please-upgrade-node@npm:3.2.0"
@@ -17629,6 +17683,7 @@ __metadata:
1762917683
"@cypress/webpack-preprocessor": "npm:7.0.1"
1763017684
"@jest/environment": "npm:30.2.0"
1763117685
"@jest/types": "npm:30.2.0"
17686+
"@playwright/test": "npm:^1.52.0"
1763217687
"@swc/core": "npm:1.15.11"
1763317688
"@testing-library/jest-dom": "npm:6.9.1"
1763417689
"@testing-library/react": "npm:16.3.1"

0 commit comments

Comments
 (0)