Increased timeout to allow for delays in browser e2e test

- this test was randomly timing out, and the tests above allow for a
  greater timeout before failing
This commit is contained in:
Daniel Lockyer 2023-02-17 12:13:09 +01:00
parent 2f57e95a5d
commit 2edfd8b8e0
No known key found for this signature in database

View File

@ -143,13 +143,13 @@ test.describe('Portal', () => {
// open portal and check that member has been upgraded to paid tier
await portalTriggerButton.click();
await expect(portalFrame.getByText('$50.00/year')).toBeVisible();
await expect(portalFrame.getByRole('heading', {name: 'Billing info'})).toBeVisible();
await expect(portalFrame.getByText('**** **** **** 4242')).toBeVisible();
await expect(portalFrame.getByText('$50.00/year')).toBeVisible({timeout: 10000});
await expect(portalFrame.getByRole('heading', {name: 'Billing info'})).toBeVisible({timeout: 10000});
await expect(portalFrame.getByText('**** **** **** 4242')).toBeVisible({timeout: 10000});
// check that member has been upgraded in admin and a tier exists for them
await page.goto(memberUrl);
await expect(page.locator('[data-test-tier]').first()).toBeVisible();
await expect(page.locator('[data-test-tier]').first()).toBeVisible({timeout: 10000});
});
});
});