Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jul 12, 2024
1 parent 990e868 commit 44c2538
Show file tree
Hide file tree
Showing 4 changed files with 5,968 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ jobs:
- name: Execute integration tests
shell: bash -l {0}
working-directory: ui-tests
run: |
npx playwright test
run: npx playwright test

- name: Upload Playwright Test report
if: always()
Expand Down
15 changes: 5 additions & 10 deletions ui-tests/tests/geojson-layers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,17 @@ const openGIS = async (
return (await page.activity.getPanelLocator(filename)) as Locator;
};

test.beforeAll(async ({ request }) => {
const content = galata.newContentsHelper(request);
await content.deleteDirectory('/examples');
await content.uploadDirectory(
path.resolve(__dirname, '../../examples'),
'/examples'
);
});

test.describe('#geoJSONLayer', () => {
test.beforeEach(async ({ request, tmpPath }) => {
const content = galata.newContentsHelper(request);
await content.uploadFile(
path.resolve(__dirname, `./gis-files/${FILENAME}`),
`/${tmpPath}/${FILENAME}`
);
await content.uploadFile(
path.resolve(__dirname, `./gis-files/france_regions.json`),
`/${tmpPath}/france_regions.json`
);
});

test.afterEach(async ({ page, tmpPath }) => {
Expand Down Expand Up @@ -73,7 +68,7 @@ test.describe('#geoJSONLayer', () => {

await expect(dialog).not.toBeAttached();

await new Promise(_ => setTimeout(_, 500));
await new Promise(_ => setTimeout(_, 1000));

expect(await main?.screenshot()).toMatchSnapshot('geoJSON-layer.png', {});

Check failure on line 73 in ui-tests/tests/geojson-layers.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests

tests/geojson-layers.spec.ts:49:7 › #geoJSONLayer › Add a GeoJSON layer

1) tests/geojson-layers.spec.ts:49:7 › #geoJSONLayer › Add a GeoJSON layer ─────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/geojson-layers.spec.ts-snapshots/geoJSON-layer-linux.png. 71 | await new Promise(_ => setTimeout(_, 1000)); 72 | > 73 | expect(await main?.screenshot()).toMatchSnapshot('geoJSON-layer.png', {}); | ^ 74 | }); 75 | }); 76 | at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/geojson-layers.spec.ts:73:38

Check failure on line 73 in ui-tests/tests/geojson-layers.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests

tests/geojson-layers.spec.ts:49:7 › #geoJSONLayer › Add a GeoJSON layer

1) tests/geojson-layers.spec.ts:49:7 › #geoJSONLayer › Add a GeoJSON layer ─────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: A snapshot doesn't exist at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/geojson-layers.spec.ts-snapshots/geoJSON-layer-linux.png, writing actual. 71 | await new Promise(_ => setTimeout(_, 1000)); 72 | > 73 | expect(await main?.screenshot()).toMatchSnapshot('geoJSON-layer.png', {}); | ^ 74 | }); 75 | }); 76 | at /home/runner/work/jupytergis/jupytergis/ui-tests/tests/geojson-layers.spec.ts:73:38
});
Expand Down
Binary file not shown.
Loading

0 comments on commit 44c2538

Please sign in to comment.