Skip to content

Commit

Permalink
Increase timeouts, don't run parallel and use one worker (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwok-he-Chu authored Sep 21, 2023
1 parent 19260ac commit 57385ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const path = require('path');
* @type {import('@playwright/test').PlaywrightTestConfig}
*/
const config = {

testDir: './tests',

/* Maximum time one test can run for. */
Expand All @@ -19,11 +18,11 @@ const config = {
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 10000
timeout: 20 * 1000
},

/* Run tests in files in parallel */
fullyParallel: true,
fullyParallel: false,

/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
Expand All @@ -39,11 +38,10 @@ const config = {

/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {

baseURL: process.env.URL || 'http://localhost:8080',

/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 15000,
actionTimeout: 15 * 1000,

/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
Expand Down
2 changes: 1 addition & 1 deletion tests/subscription/dropin-card.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('Dropin Card', async ({ page }) => {
// Fill card details
await utilities.fillDropinCardDetails(page);

// Click "Confirm preauthorization"
// Click "Confirm"
const confirmButton = page.locator('.adyen-checkout__button__text >> visible=true');
await expect(confirmButton).toBeVisible();
await confirmButton.click();
Expand Down

0 comments on commit 57385ea

Please sign in to comment.