make share button more specific

This commit is contained in:
MarconLP 2023-04-15 23:09:43 +02:00
parent a38440bb19
commit d3723a3e75
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -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);
});