Sfoglia il codice sorgente

cut off flaky test

Yuki Takei 10 mesi fa
parent
commit
8451157931

+ 0 - 7
apps/app/playwright/20-basic-features/presentation.spec.ts

@@ -10,11 +10,4 @@ test('Presentation', async({ page }) => {
   // check the content of the h1
   // check the content of the h1
   await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
   await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
     .toHaveText(/Welcome to GROWI/);
     .toHaveText(/Welcome to GROWI/);
-
-  // forward the slide with keyboard
-  await page.keyboard.press('ArrowRight');
-
-  // check the content of the h1
-  await expect(page.getByRole('application').getByRole('heading', { level: 1 }))
-    .toHaveText(/What can you do with GROWI?/);
 });
 });

+ 4 - 0
apps/app/playwright/20-basic-features/use-tools.spec.ts

@@ -32,6 +32,10 @@ const openPutBackPageModal = async(page: Page): Promise<void> => {
   await expect(button).toBeEnabled();
   await expect(button).toBeEnabled();
   await button.waitFor({ state: 'visible' });
   await button.waitFor({ state: 'visible' });
   await button.waitFor({ state: 'attached' });
   await button.waitFor({ state: 'attached' });
+
+  // Add a small delay to ensure the button is fully interactive
+  await page.waitForTimeout(100);
+
   // Force click to ensure the button is clicked even if it's not fully visible
   // Force click to ensure the button is clicked even if it's not fully visible
   await button.click({ force: true });
   await button.click({ force: true });