Skip to content

Commit 85a6be5

Browse files
committed
Avoid using page in beforeAll
1 parent b6093e3 commit 85a6be5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

galata/test/jupyterlab/sidebars.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test.use({
4949
});
5050

5151
test.describe('Sidebars', () => {
52-
test.beforeAll(async ({ page, request, tmpPath }) => {
52+
test.beforeAll(async ({ request, tmpPath }) => {
5353
const contents = galata.newContentsHelper(request);
5454

5555
// Create some dummy content
@@ -63,9 +63,6 @@ test.describe('Sidebars', () => {
6363
);
6464
// Create a dummy folder
6565
await contents.createDirectory(`${tmpPath}/${testFolderName}`);
66-
67-
// Freeze all items' last modified dates as one day ago.
68-
await galata.Mock.freezeContentLastModified(page, filterContent);
6966
});
7067

7168
test.afterAll(async ({ request, tmpPath }) => {
@@ -93,6 +90,9 @@ test.describe('Sidebars', () => {
9390
// Additional test cases for resized widths of the file browser
9491
for (const [sizeName, size] of Object.entries(sidebarWidths)) {
9592
test(`Open Sidebar tab filebrowser ${sizeName}`, async ({ page }) => {
93+
// Freeze all items' last modified dates as one day ago.
94+
await galata.Mock.freezeContentLastModified(page, filterContent);
95+
9696
await page.sidebar.openTab('filebrowser');
9797
// Resize the sidebar to the desired width.
9898
await page.sidebar.setWidth(size, 'left');

0 commit comments

Comments
 (0)