Skip to content

Commit

Permalink
should fail with timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-jaksov-tl committed Oct 22, 2024
1 parent 660077c commit 571240b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ jobs:
docker exec -w /data/extensions/magento2 magento npx playwright install
- name: Run tests
run: docker exec -w /data/extensions/magento2 magento npx playwright test --project=chromium
run: docker exec --env PW_TEST_HTML_REPORT_OPEN=never -w /data/extensions/magento2 magento npx playwright test --project=chromium --reporter=line
2 changes: 1 addition & 1 deletion tests/e2e/pages/order-confirmation-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export class OrderConfirmationPage {
// Methods
async waitForProcessingAndReturnToStore() {
await this.paymentBeingProcessedText().isVisible();
await expect(this.orderConfirmedText()).toBeVisible({timeout: 60000});
await expect(this.orderConfirmedText()).toBeVisible({timeout: 1});
}
}
2 changes: 1 addition & 1 deletion tests/e2e/pages/payment-confirmation-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class PaymentConfirmationPage {

// Methods
async waitForProcessingAndContinue() {
await expect(this.paymentProcessingText().or(this.paymentConfirmedText())).toBeVisible({timeout: 10000})
await expect(this.paymentProcessingText().or(this.paymentConfirmedText())).toBeVisible({timeout: 15000})
await expect(this.continueButton()).toBeVisible();
await this.continueButton().click();
}
Expand Down

0 comments on commit 571240b

Please sign in to comment.