Skip to content

Commit

Permalink
fix: config change & added assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Florez authored and Sergio Florez committed Feb 4, 2025
1 parent a39aea8 commit dc7f83e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: 3,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
timeout: 70 * 500,
timeout: 50 * 500,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down
11 changes: 11 additions & 0 deletions tests/initialInquiry/initialInquiry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ test.describe.serial('Create initial inquiry', () => {

await loginUser(page, username!, password!);

await setTimeout(async () => 2000);
const header = page.locator('header.header');
await expect(header.locator('h2')).not.toHaveText('');
await expect(header.locator('p')).not.toHaveText('');

// assert user is logged in and check for initial inquiries
await page.waitForSelector('a[href="/profile"]', { state: 'visible' });
await expect(
page.locator('div[id="local-switch-wrapper"]')
).toBeVisible();

await page.locator('a.navigation__item:first-of-type').click();

await page.waitForSelector('.listInfo__illustration');
Expand Down

0 comments on commit dc7f83e

Please sign in to comment.