diff --git a/tests/002-video.spec.ts b/tests/002-video.spec.ts index fb76e9b..547a292 100644 --- a/tests/002-video.spec.ts +++ b/tests/002-video.spec.ts @@ -38,7 +38,7 @@ test("should be able to share video", async ({ page }) => { await expect(page).toHaveURL(/http:\/\/localhost:3000\/share\/[A-Za-z0-9]+/); await page.getByText("Share").click(); - await page.locator('button[role="switch"]').click(); + await page.locator('div.mt-6 > button[role="switch"]').click(); await page.waitForTimeout(5000); });