Skip to content

Commit 11a547e

Browse files
author
kr-2003
committed
added inspect testing
1 parent e483476 commit 11a547e

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ jobs:
282282
# Run Playwright tests
283283
npx playwright test
284284
285-
- name: Upload Playwright Test Results
286-
if: ${{ always() }}
287-
uses: actions/upload-artifact@v4
288-
with:
289-
name: playwright-test-results-${{ matrix.os }}
290-
path: ${{ env.ARTIFACT_PATH }}
291-
retention-days: 7
285+
# - name: Upload Playwright Test Results
286+
# if: ${{ always() }}
287+
# uses: actions/upload-artifact@v4
288+
# with:
289+
# name: playwright-test-results-${{ matrix.os }}
290+
# path: ${{ env.ARTIFACT_PATH }}
291+
# retention-days: 7
292292

293293
- name: Setup tmate session
294294
if: ${{ failure() && runner.debug }}

ui-test/src/xeus-cpp.spec.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,30 @@ test.describe('xeus-cpp-lite UI Test', () => {
4545
expect(screenshot).toMatchSnapshot('xeus-cpp-hello-output.png');
4646
});
4747

48-
test('xeus-cpp-lite should inspect documentation', async ({ page }) => {
48+
// test('xeus-cpp-lite should inspect documentation', async ({ page }) => {
4949

50-
await page.goto(`${JUPYTERLITE_URL}/lab/index.html`, { timeout: 10000 });
50+
// await page.goto(`${JUPYTERLITE_URL}/lab/index.html`, { timeout: 10000 });
5151

52-
await page.waitForSelector('.jp-LauncherCard', { timeout: 10000 });
52+
// await page.waitForSelector('.jp-LauncherCard', { timeout: 10000 });
5353

54-
await page.locator('.jp-LauncherCard[title*="C++20"]').first().click();
54+
// await page.locator('.jp-LauncherCard[title*="C++20"]').first().click();
5555

56-
await page.waitForSelector('.jp-Notebook', { timeout: 10000 });
56+
// await page.waitForSelector('.jp-Notebook', { timeout: 10000 });
5757

58-
const code = `?std::vector`;
59-
await page.locator('.jp-CodeMirrorEditor').first().click();
60-
await page.keyboard.type(code);
58+
// const code = `?std::vector`;
59+
// await page.locator('.jp-CodeMirrorEditor').first().click();
60+
// await page.keyboard.type(code);
6161

62-
await page.keyboard.press('Control+Enter');
62+
// await page.keyboard.press('Control+Enter');
6363

64-
await page.waitForSelector('.jp-OutputArea-output', { timeout: 20000 });
65-
await page.waitForTimeout(2000); // Additional wait for execution
64+
// await page.waitForSelector('.jp-OutputArea-output', { timeout: 20000 });
65+
// await page.waitForTimeout(2000); // Additional wait for execution
6666

67-
const outputArea = page.locator('.jp-OutputArea-output').first();
68-
const screenshot = await outputArea.screenshot();
67+
// const outputArea = page.locator('.jp-OutputArea-output').first();
68+
// const screenshot = await outputArea.screenshot();
6969

70-
expect(screenshot).toMatchSnapshot('xeus-cpp-inspect-output.png');
71-
});
70+
// expect(screenshot).toMatchSnapshot('xeus-cpp-inspect-output.png');
71+
// });
7272
});
7373

7474
test.afterAll(async () => {

0 commit comments

Comments
 (0)