Browse Source

QrCode: fix playwright test (make text based selector unambiguous)

pull/4585/head
Daniel Spaude 2 years ago
parent
commit
6e522fda5f
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 2
      tests/playwright/package-lock.json
  2. 2
      tests/playwright/package.json
  3. 2
      tests/playwright/pages/Dashboard/Grid/Column/index.ts

2
tests/playwright/package-lock.json generated

@ -14,7 +14,7 @@
"xlsx": "^0.18.5"
},
"devDependencies": {
"@playwright/test": "1.27.1",
"@playwright/test": "^1.27.1",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"axios": "^0.24.0",

2
tests/playwright/package.json

@ -23,7 +23,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "1.27.1",
"@playwright/test": "^1.27.1",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"axios": "^0.24.0",

2
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -95,7 +95,7 @@ export class ColumnPageObject extends BasePage {
await this.get().locator('.ant-select-single').nth(1).click();
await this.rootPage
.locator(`.ant-select-item`, {
hasText: qrCodeValueColumnTitle,
hasText: new RegExp(`^${qrCodeValueColumnTitle}$`),
})
.click();
break;

Loading…
Cancel
Save