diff --git a/packages/web-app-progress-bars/tests/e2e/progressBar.spec.ts b/packages/web-app-progress-bars/tests/e2e/progressBar.spec.ts index 4b1e7bf3..5c355a42 100644 --- a/packages/web-app-progress-bars/tests/e2e/progressBar.spec.ts +++ b/packages/web-app-progress-bars/tests/e2e/progressBar.spec.ts @@ -13,10 +13,10 @@ test.afterEach(async () => { await logout(adminPage) }) -test('select the progressBarOption from the web-app-progress-bars extension', async () => { +test('select the progressBarOption on the account page', async () => { const accountPage = new AccountPage(adminPage) await accountPage.goToAccountPage() - await accountPage.selectProgressBarExtension('Nyan Cat progress bar') + await accountPage.selectProgressBarExtension() const progressBarCurrent = await accountPage.progressBarCurrent.textContent() expect(progressBarCurrent).toEqual('Nyan Cat progress bar') diff --git a/support/pages/accountPage.ts b/support/pages/accountPage.ts index 9518a91b..4ada7cee 100644 --- a/support/pages/accountPage.ts +++ b/support/pages/accountPage.ts @@ -13,8 +13,8 @@ export class AccountPage { this.accountMenuBtn = this.page.locator('.oc-topbar-avatar') this.accountManageBtn = this.page.locator('#oc-topbar-account-manage') - this.progressBarSelector = this.page.locator('.account-page-extensions .extension-preference .vs__search') - this.progressBarCurrent = this.page.locator('.account-page-extensions .extension-preference .vs__selected span') + this.progressBarSelector = this.page.locator('.extension-preference .vs__search') + this.progressBarCurrent = this.page.locator('.extension-preference .vs__selected span') this.progressBarOption = this.page.getByText('Nyan Cat progress bar') } @@ -23,7 +23,7 @@ export class AccountPage { await this.accountManageBtn.click() } - async selectProgressBarExtension(name: string){ + async selectProgressBarExtension(){ await this.progressBarSelector.waitFor() await this.progressBarSelector.click() await this.progressBarOption.click()