Skip to content

Commit 3ca9f19

Browse files
Ygnasopenshift-merge-bot[bot]
authored andcommitted
fix: ipywidget test to expect new error message
1 parent a625272 commit 3ca9f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui-tests/tests/widget_notebook_example.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ test.describe("Visual Regression", () => {
8181

8282
await interactWithWidget(page, upDownWidgetCellIndex, 'button:has-text("Cluster Down")', async (button) => {
8383
await button.click();
84-
const clusterDownMessage = await page.waitForSelector('text=No instances found, nothing to be done.', { timeout: 5000 });
85-
expect(clusterDownMessage).not.toBeNull();
84+
const clusterDownMessage = await page.waitForSelector('text=The requested resource could not be located.', { timeout: 5000 });
85+
expect(await clusterDownMessage.innerText()).toContain('The requested resource could not be located.');
8686
});
8787

8888
await interactWithWidget(page, upDownWidgetCellIndex, 'button:has-text("Cluster Up")', async (button) => {

0 commit comments

Comments
 (0)