From 853355c7a7dc4c9631f0a4f121f6020f385a8236 Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Fri, 4 Oct 2024 08:14:00 +0200 Subject: [PATCH 1/2] Use a file from the test directory instead of on from the example directory --- ui-tests/tests/layer-browser.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui-tests/tests/layer-browser.spec.ts b/ui-tests/tests/layer-browser.spec.ts index 6cb70d7b..ea076d23 100644 --- a/ui-tests/tests/layer-browser.spec.ts +++ b/ui-tests/tests/layer-browser.spec.ts @@ -98,15 +98,15 @@ async function getGridTiles(page: IJupyterLabPageFixture): Promise { test.describe('#layerBrowser', () => { test.beforeAll(async ({ request }) => { const content = galata.newContentsHelper(request); - await content.deleteDirectory('/examples'); - await content.uploadDirectory( - path.resolve(__dirname, '../../examples'), - '/examples' - ); + await content.deleteDirectory('/testDir'); + await content.uploadDirectory( + path.resolve(__dirname, './gis-files'), + '/testDir' + ); }); test.beforeEach(async ({ page }) => { - await page.filebrowser.open('examples/test.jGIS'); + await page.filebrowser.open('testDir/test.jGIS'); }); test.afterEach(async ({ page }) => { From 8d2736afaade1bc410fa2ba74b41f89cc3485208 Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Fri, 4 Oct 2024 08:21:19 +0200 Subject: [PATCH 2/2] lint --- ui-tests/tests/layer-browser.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-tests/tests/layer-browser.spec.ts b/ui-tests/tests/layer-browser.spec.ts index ea076d23..5d1bf60c 100644 --- a/ui-tests/tests/layer-browser.spec.ts +++ b/ui-tests/tests/layer-browser.spec.ts @@ -99,10 +99,10 @@ test.describe('#layerBrowser', () => { test.beforeAll(async ({ request }) => { const content = galata.newContentsHelper(request); await content.deleteDirectory('/testDir'); - await content.uploadDirectory( - path.resolve(__dirname, './gis-files'), - '/testDir' - ); + await content.uploadDirectory( + path.resolve(__dirname, './gis-files'), + '/testDir' + ); }); test.beforeEach(async ({ page }) => {