Skip to content

Commit 640aa2b

Browse files
committed
Restructure for publishing from https://maps4html.org/mapmlify/ with tests still working
1 parent c7f6969 commit 640aa2b

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

src/index.html renamed to index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>MapMLify - WMS to MapML Converter</title>
8-
<link rel="stylesheet" href="style/main.css" />
9-
<script type="module" src="/dist/mapml.js"></script>
8+
<link rel="stylesheet" href="src/style/main.css" />
9+
<script type="module" src="dist/mapml.js"></script>
1010
</head>
1111

1212
<body>
@@ -37,7 +37,7 @@ <h2>Service Information</h2>
3737
</section>
3838
</main>
3939

40-
<script type="module" src="script/main.js"></script>
40+
<script type="module" src="src/script/main.js"></script>
4141
</body>
4242

4343
</html>

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
],
2828
webServer: {
2929
command: 'npx http-server . -p 8000 -c-1',
30-
url: 'http://localhost:8000/src/index.html',
30+
url: 'http://localhost:8000/index.html',
3131
reuseExistingServer: !process.env.CI,
3232
},
3333
});

src/script/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ let currentWmsBaseUrl = '';
141141
// Load capabilities URLs from file on page load
142142
async function loadCapabilitiesPresets() {
143143
try {
144-
const response = await fetch('capabilities.txt');
144+
const response = await fetch('src/capabilities.txt');
145145
const text = await response.text();
146146
const lines = text.split('\n').filter((line) => line.trim());
147147

tests/esri-imageserver.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SERVICE_URL = 'https://test.example.com/arcgis/rest/services/Elevation/Ima
1414
test.beforeEach(async ({ page }) => {
1515
await interceptTileRequests(page);
1616
await routeFixture(page, '**/test.example.com/**', 'esri-imageserver.json');
17-
await page.goto('/src/index.html');
17+
await page.goto('/index.html');
1818
});
1919

2020
test.describe('ESRI ImageServer — Service Info', () => {

tests/esri-mapserver.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test.describe('ESRI MapServer (Tiled)', () => {
1616
test.beforeEach(async ({ page }) => {
1717
await interceptTileRequests(page);
1818
await routeFixture(page, '**/test.example.com/**', 'esri-mapserver-tiled.json');
19-
await page.goto('/src/index.html');
19+
await page.goto('/index.html');
2020
});
2121

2222
test('displays service title and tiled badge', async ({ page }) => {
@@ -86,7 +86,7 @@ test.describe('ESRI MapServer (Dynamic)', () => {
8686
test.beforeEach(async ({ page }) => {
8787
await interceptTileRequests(page);
8888
await routeFixture(page, '**/test.example.com/**', 'esri-mapserver-dynamic.json');
89-
await page.goto('/src/index.html');
89+
await page.goto('/index.html');
9090
});
9191

9292
test('displays service title and MapServer badge', async ({ page }) => {

tests/service-detection.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88

99
test.beforeEach(async ({ page }) => {
1010
await interceptTileRequests(page);
11-
await page.goto('/src/index.html');
11+
await page.goto('/index.html');
1212
});
1313

1414
test.describe('Service Detection — WMS', () => {

tests/wms-111.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const SERVICE_URL = 'https://test.example.com/wms111?SERVICE=WMS&VERSION=1.1.1&R
1313
test.beforeEach(async ({ page }) => {
1414
await interceptTileRequests(page);
1515
await routeFixture(page, '**/test.example.com/**', 'wms-111.xml');
16-
await page.goto('/src/index.html');
16+
await page.goto('/index.html');
1717
});
1818

1919
test.describe('WMS 1.1.1 — Service Info', () => {

tests/wms-130.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SERVICE_URL = 'https://test.example.com/wms?SERVICE=WMS&VERSION=1.3.0&REQU
1414
test.beforeEach(async ({ page }) => {
1515
await interceptTileRequests(page);
1616
await routeFixture(page, '**/test.example.com/**', 'wms-130.xml');
17-
await page.goto('/src/index.html');
17+
await page.goto('/index.html');
1818
});
1919

2020
test.describe('WMS 1.3.0 — Service Info', () => {

tests/wmts.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SERVICE_URL = 'https://test.example.com/wmts?SERVICE=WMTS&VERSION=1.0.0&RE
1414
test.beforeEach(async ({ page }) => {
1515
await interceptTileRequests(page);
1616
await routeFixture(page, '**/test.example.com/**', 'wmts-100.xml');
17-
await page.goto('/src/index.html');
17+
await page.goto('/index.html');
1818
});
1919

2020
test.describe('WMTS — Service Info', () => {

0 commit comments

Comments
 (0)