diff --git a/tests/playwright/package-lock.json b/tests/playwright/package-lock.json index 18132ac04f..6ee489570a 100644 --- a/tests/playwright/package-lock.json +++ b/tests/playwright/package-lock.json @@ -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", diff --git a/tests/playwright/package.json b/tests/playwright/package.json index d685046cce..9908421167 100644 --- a/tests/playwright/package.json +++ b/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", diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index 48107c7800..91e0e3f674 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/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;