test: increase retries times to 3 (#1763)

This commit is contained in:
Himself65 2023-03-30 21:00:19 -05:00 committed by GitHub
parent c55d61a641
commit bd67554f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ const config: PlaywrightTestConfig = {
},
forbidOnly: !!process.env.CI,
workers: 4,
retries: 1,
retries: 3,
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
// default 'list' when running locally
// See https://playwright.dev/docs/test-reporters#github-actions-annotations

View File

@ -45,7 +45,7 @@ test.describe('affine workspace', () => {
await page.getByTestId('local-workspace-enable-cloud-button').click();
await page.getByTestId('confirm-enable-cloud-button').click();
await page.waitForSelector("[data-testid='member-length']", {
timeout: 10000,
timeout: 20000,
});
await clickSideBarAllPageButton(page);
await clickNewPageButton(page);

View File

@ -20,6 +20,7 @@ test.describe('Change Theme', () => {
);
expect(themeMode).toBe('light');
await page.waitForTimeout(50);
const rightMenu = page.getByTestId('editor-option-menu');
const rightMenuBox = await rightMenu.boundingBox();
const lightButton = page.getByTestId('change-theme-light');