Skip to content

Commit

Permalink
Reverted timeouts (deephaven#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Mar 7, 2024
1 parent d734498 commit 7169bf0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/styleguide.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ test('UI regression test - Styleguide section count', async ({ page }) => {
'.sample-section:not(.sample-section-e2e-ignore)'
);

await expect(sampleSections).toHaveCount(sampleSectionIds.length);
await expect(sampleSections).toHaveCount(sampleSectionIds.length, {
timeout: 45000,
});
});

test('UI regression test - Styleguide button section count', async ({
Expand All @@ -69,7 +71,9 @@ test('UI regression test - Styleguide button section count', async ({

const buttonSections = await page.locator('[id^="sample-section-buttons-"]');

await expect(buttonSections).toHaveCount(buttonSectionIds.length);
await expect(buttonSections).toHaveCount(buttonSectionIds.length, {
timeout: 45000,
});
});

// Iterate over all sample sections and take a screenshot of each one.
Expand All @@ -94,7 +98,9 @@ buttonSectionIds.forEach((id, i) => {
const sampleSection = page.locator(`#${id}`);

const buttons = sampleSection.locator('button');
await expect(buttons, `Button section: '${id}'`).not.toHaveCount(0);
await expect(buttons, `Button section: '${id}'`).not.toHaveCount(0, {
timeout: 45000,
});

const buttonCount = await buttons.count();

Expand Down Expand Up @@ -149,7 +155,9 @@ test('Inputs regression test', async ({ page }) => {

const columns = page.locator('#sample-section-inputs .col');

await expect(columns).toHaveCount(7);
await expect(columns).toHaveCount(7, {
timeout: 45000,
});

// Test focus state for each enabled input
const columnsCount = await columns.count();
Expand Down

0 comments on commit 7169bf0

Please sign in to comment.