chore: use getByText instead of getByLabel

This commit is contained in:
Matthias 2024-09-04 19:24:04 +02:00
parent ceb81a04bc
commit 1bbef245e8

View File

@ -108,7 +108,7 @@ test.describe('Trade', () => {
const multiPanebb = await multiPane.boundingBox(); const multiPanebb = await multiPane.boundingBox();
await page.locator('#avatar-drop').click(); await page.locator('#avatar-drop').click();
await page.getByLabel('Lock layout').uncheck(); await page.getByText('Lock layout').uncheck();
const chartHeader = await page.locator('.drag-header:has-text("Chart")'); const chartHeader = await page.locator('.drag-header:has-text("Chart")');
await expect(multiPane).toBeInViewport(); await expect(multiPane).toBeInViewport();