Skip to content

Commit ed920ca

Browse files
committed
chore: update playwright and fixup tests
1 parent 030b7c5 commit ed920ca

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

e2e/home-page.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { expect, Locator, Page, Response } from "@playwright/test"
2-
import * as path from "path"
2+
import * as path from "node:path"
3+
import { fileURLToPath } from "node:url"
4+
5+
// Get current file path since __dirname is not available in ES modules
6+
const __filename = fileURLToPath(import.meta.url)
7+
const __dirname = path.dirname(__filename)
38

49
export class HomePage {
510
readonly page: Page
@@ -81,7 +86,9 @@ export class HomePage {
8186
}
8287

8388
async setTargetFilter(target: string) {
84-
await this.page.getByRole("textbox", { name: "Select Target" }).fill(target)
89+
await this.page
90+
.getByRole("combobox", { name: "Select Target" })
91+
.fill(target)
8592
}
8693

8794
async setInputFilter(input: string) {
@@ -96,7 +103,7 @@ export class HomePage {
96103
await this.page
97104
.locator('table tr th input[type="checkbox"]')
98105
.first()
99-
.check()
106+
.check({ force: true })
100107

101108
// Verify that all checkboxes in the table are checked
102109
const checkboxes = this.page.locator('table tr td input[type="checkbox"]')

package-lock.json

Lines changed: 1 addition & 1 deletion
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
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@eslint/js": "9.36.0",
36-
"@playwright/test": "^1.49.1",
36+
"@playwright/test": "1.55.1",
3737
"@semantic-release/github": "11.0.6",
3838
"@tsconfig/node22": "22.0.2",
3939
"@types/node": "22.18.6",

0 commit comments

Comments
 (0)