Skip to content

Commit

Permalink
use schedulerHelper to wait until loading is done
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Jul 4, 2023
1 parent 4a07a22 commit 69399ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-tests/tests/jupyter_scheduler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test.describe('Jupyter Scheduler integration tests for JupyterLab', () => {
expect(await righClickMenu.screenshot()).toMatchSnapshot(righClickMenuSnapshot);

await createJobItem.click();
await page.waitForFunction(() => !document.documentElement.innerText.includes("Loading …"));
schedulerHelper.waitForLoading();
const createViewSnapshot = 'create-view-empty.png';
await page.sidebar.close(await page.sidebar.getTabPosition('filebrowser') ?? undefined);
expect(await page.screenshot()).toMatchSnapshot(createViewSnapshot);
Expand Down

0 comments on commit 69399ec

Please sign in to comment.