Skip to content

Commit

Permalink
review addressed
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <[email protected]>
  • Loading branch information
nabim777 committed Jan 24, 2025
1 parent 59e6483 commit 9bfe0fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/web-app-progress-bars/tests/e2e/progressBar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
6 changes: 3 additions & 3 deletions support/pages/accountPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand All @@ -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()
Expand Down

0 comments on commit 9bfe0fb

Please sign in to comment.