Skip to content

Commit

Permalink
Cleaned up some parts
Browse files Browse the repository at this point in the history
  • Loading branch information
yushan-mu committed Oct 31, 2024
1 parent d34271c commit a39cba4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/e2e/api/events/map-change-event.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8">
<title>map-projectionchange event</title>
<title>map-change event</title>
<!-- the layer in this map should continue to be visible when you change
the viewer projection from OSMTILE to CBMTILE. -->
<script type="module" src="/mapml.js"></script>
Expand All @@ -18,10 +18,10 @@
<body>
<mapml-viewer projection="OSMTILE" zoom="14" lat="45.406314" lon="-75.6883335" controls=""
controlslist="geolocation">
<map-layer data-testid="layer" label="OpenStreetMap" checked="">
<map-layer label="OpenStreetMap" checked="">
<map-link rel="license" title="© OpenStreetMap contributors CC BY-SA"
href="https://www.openstreetmap.org/copyright"></map-link>
<map-extent data-testid="extent" units="OSMTILE" checked="checked">
<map-extent units="OSMTILE" checked="checked">
<map-input name="z" type="zoom" value="18" min="0" max="18"></map-input>
<map-input name="x" type="location" units="tilematrix" axis="column" min="0" max="262144"></map-input>
<map-input name="y" type="location" units="tilematrix" axis="row" min="0" max="262144"></map-input>
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/api/events/map-change-event.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect, chromium } from '@playwright/test';

test.describe('map change event test ', () => {
test.describe('Map change event are fired when layers/extents are checked or unchecked ', () => {
let page;
let context;
test.beforeAll(async () => {
Expand Down Expand Up @@ -75,7 +75,7 @@ test.describe('map change event test ', () => {
await page.waitForTimeout(500);
expect(extentClicked).toBe(2);

// check and uncheck layers using removeAttribute and setAttribute
// check and uncheck extents using removeAttribute and setAttribute
await page.evaluate(() => {
const extent = document.querySelector('map-extent');
extent.removeAttribute('checked');
Expand Down

0 comments on commit a39cba4

Please sign in to comment.