-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update playwright/tests/giftCards.spec.ts
Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
- Loading branch information
Showing
3 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ export class IssueGiftCardDialog extends BasePage { | |
readonly expiryPeriodAmountInput = page.locator('[name="expiryPeriodAmount"]'), | ||
readonly tagsInput = page.getByTestId("gift-card-tag-select-field").locator("input"), | ||
readonly cardCode = page.getByTestId("cardCode"), | ||
|
||
readonly giftCardExpireFields = page.getByTestId("gift-card-expire-data-fields"), | ||
readonly sendToCustomerCheckbox = page | ||
.getByTestId("send-to-customer-section") | ||
.locator('input[type="checkbox"]'), | ||
|
@@ -71,6 +71,8 @@ export class IssueGiftCardDialog extends BasePage { | |
|
||
async clickSendExpireDateCheckbox() { | ||
await this.sendExpireDateCheckbox.click(); | ||
await expect(this.sendExpireDateCheckbox.isChecked()).toBeTruthy(); | ||
await this.giftCardExpireFields.waitFor({ state: "attached" }); | ||
Check failure on line 75 in playwright/pages/dialogs/issueGiftCardDialog.ts GitHub Actions / run-tests (1/2)[chromium] › giftCards.spec.ts:43:5 › TC: SALEOR_106 Issue gift card with specific customer and expiry date @e2e @gift
|
||
} | ||
|
||
async clickRequiresActivationCheckbox() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters