Skip to content

Commit

Permalink
fix: adjusting giftcardselect logic to reduce timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Oct 2, 2024
1 parent 2421086 commit f8c2ae0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/playwright/pages/PaymentMethodsPage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,13 @@ export default class PaymentMethodsPage {

initiateGiftCardPayment = async (giftCardInput) => {
const giftCardComponentWrapper = this.page.locator(".gift-card-selection");
const giftCardSelect = this.page.locator('#giftCardSelect');
await this.page.locator('#giftCardAddButton').click();
await this.page.locator('#giftCardSelect').click()
await giftCardSelect.waitFor({
state: 'visible',
timeout: 25000,
});
await giftCardSelect.click();
const giftCardBrand = this.page.locator(`li[data-brand=${giftCardInput.brand}]`)
await this.page.locator("#giftCardUl").waitFor({
state: 'visible',
Expand Down

0 comments on commit f8c2ae0

Please sign in to comment.