test: increase retries times to 3 (#1763)
This commit is contained in:
@@ -36,7 +36,7 @@ const config: PlaywrightTestConfig = {
|
|||||||
},
|
},
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
workers: 4,
|
workers: 4,
|
||||||
retries: 1,
|
retries: 3,
|
||||||
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
|
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
|
||||||
// default 'list' when running locally
|
// default 'list' when running locally
|
||||||
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
|
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ test.describe('affine workspace', () => {
|
|||||||
await page.getByTestId('local-workspace-enable-cloud-button').click();
|
await page.getByTestId('local-workspace-enable-cloud-button').click();
|
||||||
await page.getByTestId('confirm-enable-cloud-button').click();
|
await page.getByTestId('confirm-enable-cloud-button').click();
|
||||||
await page.waitForSelector("[data-testid='member-length']", {
|
await page.waitForSelector("[data-testid='member-length']", {
|
||||||
timeout: 10000,
|
timeout: 20000,
|
||||||
});
|
});
|
||||||
await clickSideBarAllPageButton(page);
|
await clickSideBarAllPageButton(page);
|
||||||
await clickNewPageButton(page);
|
await clickNewPageButton(page);
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ test.describe('Change Theme', () => {
|
|||||||
);
|
);
|
||||||
expect(themeMode).toBe('light');
|
expect(themeMode).toBe('light');
|
||||||
|
|
||||||
|
await page.waitForTimeout(50);
|
||||||
const rightMenu = page.getByTestId('editor-option-menu');
|
const rightMenu = page.getByTestId('editor-option-menu');
|
||||||
const rightMenuBox = await rightMenu.boundingBox();
|
const rightMenuBox = await rightMenu.boundingBox();
|
||||||
const lightButton = page.getByTestId('change-theme-light');
|
const lightButton = page.getByTestId('change-theme-light');
|
||||||
|
|||||||
Reference in New Issue
Block a user