Skip to content

Commit

Permalink
let's see
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Feb 18, 2025
1 parent f25a15e commit 8e8c704
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,12 @@ test.describe('UI Test', () => {
});

for (const file of fileList) {
test(`Should be able to render ${file} without error`, async ({
page
}) => {
await page.goto(`lab/index.html?path=${file}`);
test(`Should be able to render ${file} without error`, async ({ browser }) => {
const context = await browser.newContext();
const page = await context.newPage();
await page.goto(`lab/index.html?path=${file}`, { waitUntil: 'load' });
console.log('FILE LOADED');

// const fullPath = `examples/${file}`;
// await page.notebook.openByPath(fullPath);
// await page.notebook.activate(fullPath);
// await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' });
// await page.waitForTimeout(1000);

// console.log("before");


// if (await page.getByRole('button', { name: 'Ok' }).isVisible()) {
// await page.getByRole('button', { name: 'Ok' }).click();
// }

// console.log('after');


// await page.sidebar.close('left');
// await page.sidebar.close('right');
// await page.waitForTimeout(1000);

const main = await page.$('#jp-main-split-panel');
expect(errors).toBe(0);
if (main) {
Expand Down

0 comments on commit 8e8c704

Please sign in to comment.