From efaa483f61b62534207ca0a9ed0a565a0973b4cd Mon Sep 17 00:00:00 2001 From: chalapkoStanislav Date: Wed, 23 Oct 2024 19:06:26 +0300 Subject: [PATCH] fix(locators): add exact (win32, chrome/firefox) --- pages/dashboard/dashboard-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/dashboard/dashboard-page.js b/pages/dashboard/dashboard-page.js index c81aad53..2638492d 100644 --- a/pages/dashboard/dashboard-page.js +++ b/pages/dashboard/dashboard-page.js @@ -137,7 +137,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { this.selectedRadioButtonLabel = page.locator('label[class*="components_forms__radio-label checked"]').first(); this.selectedRadioImageLabel = page.locator('label[class*="checked"] span[class*="text"]').first(); this.onboardingPaginator = page.locator('div[class*="onboarding_questions__paginator"]'); - this.onboardingLetsGoBtn = page.getByRole('button', { name: 'Continue' }); + this.onboardingLetsGoBtn = page.getByRole('button', { name: 'Continue', exact: true }); this.onboardingFirstHeader = page.locator('*[class*="onboarding_questions__modal-title"]'); this.whatNewsHeader = page.getByText('What’s new in Penpot?', { exact: true }); this.pluginModalHeader = page.getByText('Build Plugins and enhance your workflow', { exact: true });