Skip to content

Commit

Permalink
Slow down typing on test that is always flaky (because PAN doesn't fi…
Browse files Browse the repository at this point in the history
…ll properly on Webkit)
  • Loading branch information
sponglord committed Nov 26, 2024
1 parent 7be6248 commit 2f6cc6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/e2e-playwright/models/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class Card extends Base {
await this.cardNumberInput.fill(cardNumber);
}

async typeCardNumber(cardNumber: string) {
await this.cardNumberInput.pressSequentially(cardNumber, { delay: USER_TYPE_DELAY });
async typeCardNumber(cardNumber: string, delay = USER_TYPE_DELAY) {
await this.cardNumberInput.pressSequentially(cardNumber, { delay });
}

async deleteCardNumber() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ test.describe('Test Card, & binLookup w. panLength property', () => {
// Card out of date
await card.fillExpiryDate('12/90');

await card.typeCardNumber(CARD_WITH_PAN_LENGTH);
await card.typeCardNumber(CARD_WITH_PAN_LENGTH, 300);

await page.waitForTimeout(500);
// await page.waitForTimeout(300);

// Expect UI change - expiryDate field has focus
await expect(card.cardNumberInput).not.toBeFocused();
Expand Down

0 comments on commit 2f6cc6b

Please sign in to comment.