Skip to content

Commit

Permalink
create and delete tmpPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed May 13, 2024
1 parent 069d4ba commit ec394df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion ui-tests/test/mobile.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Jupyter Development Team.

Check failure on line 1 in ui-tests/test/mobile.spec.ts

View workflow job for this annotation

GitHub Actions / ui-tests (firefox)

[firefox] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page

2) [firefox] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.

Check failure on line 1 in ui-tests/test/mobile.spec.ts

View workflow job for this annotation

GitHub Actions / ui-tests (firefox)

[firefox] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page

2) [firefox] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.

Check failure on line 1 in ui-tests/test/mobile.spec.ts

View workflow job for this annotation

GitHub Actions / ui-tests (chromium)

[chromium] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page

2) [chromium] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page Test timeout of 60000ms exceeded.

Check failure on line 1 in ui-tests/test/mobile.spec.ts

View workflow job for this annotation

GitHub Actions / ui-tests (chromium)

[chromium] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page

2) [chromium] › test/mobile.spec.ts:38:7 › Mobile › The layout should be more compact on the notebook page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
// Distributed under the terms of the Modified BSD License.

import { expect } from '@jupyterlab/galata';
import { expect, galata } from '@jupyterlab/galata';

import { test } from './fixtures';

Expand All @@ -14,6 +14,16 @@ test.use({
});

test.describe('Mobile', () => {
test.beforeAll(async ({ request, tmpPath }) => {
const contents = galata.newContentsHelper(request);
await contents.createDirectory(tmpPath);
});

test.afterAll(async ({ request, tmpPath }) => {
const contents = galata.newContentsHelper(request);
await contents.deleteDirectory(tmpPath);
});

test('The layout should be more compact on the file browser page', async ({
page,
tmpPath,
Expand Down
12 changes: 11 additions & 1 deletion ui-tests/test/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@

import { test } from './fixtures';

import { expect } from '@jupyterlab/galata';
import { expect, galata } from '@jupyterlab/galata';

test.use({ autoGoto: false, tmpPath: 'settings' });

test.describe('Settings', () => {
test.beforeAll(async ({ request, tmpPath }) => {
const contents = galata.newContentsHelper(request);
await contents.createDirectory(tmpPath);
});

test.afterAll(async ({ request, tmpPath }) => {
const contents = galata.newContentsHelper(request);
await contents.deleteDirectory(tmpPath);
});

test('Should be persisted after reloading the page', async ({
page,
tmpPath,
Expand Down

0 comments on commit ec394df

Please sign in to comment.