From f1ed2c2dff651dda5e01dc4ba884426fe43349cd Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Thu, 2 Jan 2025 16:21:31 +0100 Subject: [PATCH] Fix test --- ui-tests/tests/commands.spec.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ui-tests/tests/commands.spec.ts b/ui-tests/tests/commands.spec.ts index 222e755..531586b 100644 --- a/ui-tests/tests/commands.spec.ts +++ b/ui-tests/tests/commands.spec.ts @@ -111,14 +111,13 @@ test.describe('#menuNew', () => { }); test.describe('#launcher', () => { - test('should have a launcher item in section', async ({ page }) => { - // Chat section - await expect( - page.locator('.jp-Launcher-sectionTitle:text("Chat")') - ).toHaveCount(1); - - // Chat tile - const tile = page.locator('.jp-LauncherCard[data-category="Chat"]'); + test('should have a launcher chat tile in other section', async ({ + page + }) => { + const tile = page + .locator('.jp-LauncherCard[data-category="Other"]') + .filter({ hasText: 'Chat' }); + await expect(tile).toHaveCount(1); expect(await tile.screenshot()).toMatchSnapshot('launcher-tile.png'); });