Skip to content

Commit

Permalink
Update navigation and order SALEOR_217 test
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Jan 28, 2025
1 parent fb44e99 commit 1aaaa93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion playwright/pages/dialogs/addNavigationMenuItemDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export class AddNavigationMenuItemDialog extends BasePage {
await linkTypeOption.waitFor({ state: "visible" });
await expect(linkTypeOption).toBeEnabled();
await linkTypeOption.click({ force: true });
await linkTypeOption.waitFor({ state: "hidden" });
await this.menuLinkValue.blur();

// Verify the correct link type is selected
const selectedLinkType = await this.menuLinkType.inputValue();
Expand All @@ -43,9 +45,11 @@ export class AddNavigationMenuItemDialog extends BasePage {
await option.waitFor({ state: "visible" });
await expect(option).toBeEnabled();
await option.click({ force: true });
await option.waitFor({ state: "hidden" });
await this.menuLinkValue.blur();

// Verify the correct option is selected
await expect(this.menuLinkValue).toHaveValue(optionName);
await expect(this.menuLinkValue).toHaveValue(optionName, { timeout: 5000 });
}

async typeMenuItemName(name: string) {
Expand Down
5 changes: 4 additions & 1 deletion playwright/pages/pageElements/rightSideDetailsSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ export class RightSideDetailsPage extends BasePage {

async typeAndSelectCustomerEmail(customerEmail = "[email protected]") {
await this.searchCustomerInput.fill(customerEmail);
await this.selectCustomerOption.locator(`text=${customerEmail}`).click();
await this.selectCustomerOption
.filter({ hasText: customerEmail })
.waitFor({ state: "visible" });
await this.selectCustomerOption.filter({ hasText: customerEmail }).click();
}

async selectOneChannelAsAvailableWhenMoreSelected(channel: string) {
Expand Down

0 comments on commit 1aaaa93

Please sign in to comment.