Update manager.spec.ts to replace locator IDs for addon panel visibility checks

This commit is contained in:
Valentin Palkovic 2025-03-30 21:13:11 +02:00
parent 9649d370f8
commit 8675b33de1

View File

@ -243,14 +243,14 @@ test.describe('Manager UI', () => {
await sbPage.page.locator('[title="Open addon panel"]').click();
// panel is open
await expect(sbPage.page.locator('#list-item-addon-controls')).toBeVisible();
await expect(sbPage.page.locator('#tabbutton-addon-controls')).toBeVisible();
// close panel
await sbPage.page.locator('[title="Close addon panel"]').click();
// panel is closed
await expect(mobileNavigationHeading).toHaveText('Example/Button/Secondary');
await expect(sbPage.page.locator('#list-item-addon-controls')).toBeHidden();
await expect(sbPage.page.locator('#tabbutton-addon-controls')).toBeHidden();
});
});
});