Skip to content

Commit

Permalink
[Tests] update tests to reflect max zoom level for maps (#1823) (#2387)
Browse files Browse the repository at this point in the history
Maps zoom level were updated to be 14 as noted here:
opensearch-project/maps#4 (comment)

Issue:
n/a

Signed-off-by: Kawika Avilla <[email protected]>
(cherry picked from commit e7362f9)

Co-authored-by: Kawika Avilla <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and kavilla authored Sep 20, 2022
1 parent a6aaf6e commit aec9cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/visualize/_tile_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default function ({ getService, getPageObjects }) {
zoomWarningEnabled = await testSubjects.exists('zoomWarningEnabled');
log.debug(`Zoom warning enabled: ${zoomWarningEnabled}`);

const zoomLevel = 9;
const zoomLevel = 13;
for (let i = 0; i < zoomLevel; i++) {
await PageObjects.tileMap.clickMapZoomIn();
}
Expand All @@ -276,7 +276,7 @@ export default function ({ getService, getPageObjects }) {
}
});

it('should show warning at zoom 10', async () => {
it('should show warning at zoom 14', async () => {
await testSubjects.existOrFail('maxZoomWarning');
});

Expand Down

0 comments on commit aec9cb1

Please sign in to comment.