From 2f455af8eb24480576d934aad9dc84974a888ece Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 8 Apr 2024 17:51:43 +0200 Subject: [PATCH] Use improved locator syntax --- e2e/trade.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/trade.spec.ts b/e2e/trade.spec.ts index 773e47f4..e40249a9 100644 --- a/e2e/trade.spec.ts +++ b/e2e/trade.spec.ts @@ -47,10 +47,10 @@ test.describe('Trade', () => { // // Check visibility of elements await expect(page.locator('.drag-header', { hasText: 'Multi Pane' })).toBeInViewport(); - await expect(page.locator('.drag-header:has-text("Chart")')).toBeInViewport(); + await expect(page.locator('.drag-header', { hasText: 'Chart' })).toBeInViewport(); // Pairlist elements - await expect(page.locator('button:has-text("BTC/USDT")')).toBeInViewport(); - await expect(page.locator('button:has-text("ETH/USDT")')).toBeInViewport(); + await expect(page.locator('button', { hasText: 'BTC/USDT' })).toBeInViewport(); + await expect(page.locator('button', { hasText: 'ETH/USDT' })).toBeInViewport(); // // Click on Performance button and wait for response await Promise.all([