fix: avoid duplicate billing portal link (#330)
* fix: avoid duplicate billing portal link * fix: improve DataTable API
This commit is contained in:
committed by
GitHub
parent
ad427365c9
commit
f9ebe2f927
@@ -62,13 +62,13 @@ export default defineConfig({
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'on-first-retry',
|
||||
navigationTimeout: 15_000,
|
||||
navigationTimeout: 15 * 1000,
|
||||
},
|
||||
// test timeout set to 2 minutes
|
||||
timeout: 120 * 1000,
|
||||
expect: {
|
||||
// expect timeout set to 5 seconds
|
||||
timeout: 5 * 1000,
|
||||
// expect timeout set to 10 seconds
|
||||
timeout: 10 * 1000,
|
||||
},
|
||||
/* Configure projects for major browsers */
|
||||
projects: [
|
||||
|
||||
@@ -388,11 +388,15 @@ async function filterAccounts(page: Page, email: string) {
|
||||
.fill(email);
|
||||
|
||||
await page.keyboard.press('Enter');
|
||||
await page.waitForTimeout(250);
|
||||
await page.waitForTimeout(500);
|
||||
}
|
||||
|
||||
async function selectAccount(page: Page, email: string) {
|
||||
await page.getByRole('link', { name: email.split('@')[0] }).click();
|
||||
await page
|
||||
.locator('tr', { hasText: email.split('@')[0] })
|
||||
.locator('a')
|
||||
.click();
|
||||
|
||||
await page.waitForURL(new RegExp(`/admin/accounts/[a-z0-9-]+`));
|
||||
await page.waitForTimeout(500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user