Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jul 10, 2024
1 parent bf4a06e commit 049be7f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui-tests/tests/left-panel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ test.describe('#layersPanel', () => {
await expect(showLayerButton).toHaveCount(0);
});

test('should hide the top layer', async ({ page }) => {
test('should hide the top raster layer', async ({ page }) => {
const notHiddenScreenshot = 'top-layer-not-hidden.png';
const layerTree = await openLayerTree(page);
const layerGroup = layerTree.locator('.jp-gis-layerGroup');
Expand All @@ -170,10 +170,8 @@ test.describe('#layersPanel', () => {
// Open the first level group
await layerGroup.last().click();
await page.waitForCondition(async () => (await layerGroup.count()) === 2);
// Open the second level group
await layerGroup.last().click();

// Wait for the layer to be hidden.
// Wait for the map to be displayed.
expect(await main.screenshot()).toMatchSnapshot({
name: notHiddenScreenshot,
maxDiffPixelRatio: 0.01
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 049be7f

Please sign in to comment.