Skip to content

Commit 3f745a8

Browse files
committed
Update playwright
1 parent dd155ea commit 3f745a8

4 files changed

Lines changed: 20 additions & 19 deletions

File tree

e2e/default.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ test.beforeEach(async ({ page }) => {
66

77
test.describe('Basic test', () => {
88
test('should show the title', async ({ page }) => {
9-
const title = page.locator('title');
10-
await expect(title).toHaveText('Reactjs Developer Community in Kenya');
9+
await expect(
10+
page.getByRole('heading', { name: 'React Developer Community Kenya' })
11+
).toBeVisible();
1112
});
1213
});

e2e/events.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test.describe('Test if see more link is clickable', () => {
1111
}) => {
1212
const [newPage] = await Promise.all([
1313
context.waitForEvent('page'),
14-
page.locator('#events >> text="See More"').click(),
14+
page.getByRole('link', { name: 'See More' }).click(),
1515
]);
1616
await expect(newPage).toHaveURL(
1717
'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events'

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react-dom": "18.1.0"
2020
},
2121
"devDependencies": {
22-
"@playwright/test": "1.22.2",
22+
"@playwright/test": "1.27.1",
2323
"@tailwindcss/aspect-ratio": "^0.4.0",
2424
"@types/react": "18.0.21",
2525
"@typescript-eslint/eslint-plugin": "^5.38.1",

0 commit comments

Comments
 (0)