forked from City-of-Helsinki/servicemap-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from City-of-Turku/develop
Release v1.6.0
- Loading branch information
Showing
365 changed files
with
3,398 additions
and
2,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v14.17.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
import { waitForReact, ReactSelector } from 'testcafe-react-selectors'; | ||
import { waitForReact } from 'testcafe-react-selectors'; | ||
import config from '../config'; | ||
import { Selector } from 'testcafe'; | ||
|
||
/* eslint-disable */ | ||
const { server } = config; | ||
|
||
fixture`Search unit geometry test` | ||
.page`http://${server.address}:${server.port}/fi/search?q=latu` | ||
.beforeEach(async () => { | ||
fixture`Search unit geometry test`.page`http://${server.address}:${server.port}/fi/search?q=latu`.beforeEach( | ||
async () => { | ||
await waitForReact(); | ||
}); | ||
}, | ||
); | ||
|
||
test('Unit geometry is drawn on map', async (t) => { | ||
test('Unit geometry is drawn on map', async t => { | ||
const polygon = Selector('.leaflet-pane .leaflet-overlay-pane').find('canvas'); | ||
const listItem = Selector('#paginatedList-Toimipisteet-results li[role="link"]').nth(0); | ||
await t | ||
.click(listItem) | ||
.expect(polygon.exists).ok('Unit geometry not drawn on map'); | ||
await t.click(listItem).expect(polygon.exists).ok('Unit geometry not drawn on map'); | ||
}); | ||
|
||
fixture`Unit page geometry test` | ||
.page`http://${server.address}:${server.port}/fi/unit/56544` | ||
.beforeEach(async () => { | ||
await waitForReact(); | ||
}); | ||
fixture`Unit page geometry test`.page`http://${server.address}:${server.port}/fi/unit/56544`.beforeEach(async () => { | ||
await waitForReact(); | ||
}); | ||
|
||
test('Unit geometry is drawn on map', async (t) => { | ||
test('Unit geometry is drawn on map', async t => { | ||
const polygon = Selector('.leaflet-pane .leaflet-overlay-pane').find('canvas'); | ||
await t | ||
.expect(polygon.exists).ok(); | ||
}); | ||
await t.expect(polygon.exists).ok(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.