Skip to content

Commit

Permalink
Fixing SALEOR_106
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed May 10, 2024
1 parent 9514fbf commit 023d177
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions playwright/pages/dialogs/addNavigationMenuItemDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class AddNavigationMenuItemDialog extends BasePage {
await expect(this.menuLinkOptions.getByRole("option", { name: "Categories" })).toBeEnabled();
await this.menuLinkOptions.getByTestId(option).click();
await this.waitForDOMToFullyLoad();
await this.menuLinkOptions
.getByRole("option", { name: optionName })
.waitFor({ state: "visible" });
await this.menuLinkOptions.getByRole("option", { name: optionName }).click();
await this.waitForDOMToFullyLoad();
await expect(this.linkSelect).toHaveValue(optionName);
Expand Down
4 changes: 2 additions & 2 deletions playwright/pages/dialogs/issueGiftCardDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ export class IssueGiftCardDialog extends BasePage {

async clickSendToCustomerCheckbox() {
await this.sendToCustomerCheckbox.click();
await expect(this.sendToCustomerCheckbox.isChecked()).toBeTruthy();
await expect(this.sendToCustomerCheckbox).toBeChecked();
await this.customerInput.waitFor({ state: "attached" });
}

async clickSendExpireDateCheckbox() {
await this.sendExpireDateCheckbox.click();
await this.waitForDOMToFullyLoad();
await expect(this.sendExpireDateCheckbox.isChecked()).toBeTruthy();
await expect(this.sendExpireDateCheckbox).toBeChecked();
await this.giftCardExpireFields.waitFor({ state: "attached" });
}

Expand Down

0 comments on commit 023d177

Please sign in to comment.