From d779a9ea228768fad247bfb3daff67bc41f5b11e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 10 Oct 2022 17:13:26 -0700 Subject: [PATCH] e2e: fix viewer close --- e2e/timeline.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/timeline.spec.ts b/e2e/timeline.spec.ts index a45e1d9c..4fe0e86e 100644 --- a/e2e/timeline.spec.ts +++ b/e2e/timeline.spec.ts @@ -12,7 +12,7 @@ test.describe('Open', () => { test('Open one image', async ({ page }) => { await page.locator('div:nth-child(2) > .p-outer > .img-outer > img').first().click(); await page.waitForTimeout(1000); - await page.locator('button:has-text("Close")').first().click(); + await page.locator('button.header-close').first().click(); }); test('Select two images and delete', async ({ page }) => {