Skip to content

Commit 1fe9308

Browse files
committed
Update a test that was referencing wrong panel type
1 parent 676c9aa commit 1fe9308

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/ui.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,14 @@ test('UI all components render 3', async ({ page }) => {
168168

169169
test('UI markdown renders code correctly', async ({ page }) => {
170170
await gotoPage(page, '');
171-
await openPanel(page, 'markdown_code', SELECTORS.REACT_PANEL_VISIBLE);
172-
await expect(page.locator(SELECTORS.REACT_PANEL_VISIBLE)).toHaveScreenshot();
171+
await openPanel(
172+
page,
173+
'markdown_code',
174+
SELECTORS.WIDGET_LOADER_ELEMENT_VISIBLE
175+
);
176+
await expect(
177+
page.locator(SELECTORS.WIDGET_LOADER_ELEMENT_VISIBLE)
178+
).toHaveScreenshot();
173179
});
174180

175181
// Tests flex components render as expected

0 commit comments

Comments
 (0)