Skip to content

Commit

Permalink
Merge branch 'develop' into WV-3188-2day-tempo-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps authored Jun 14, 2024
2 parents 4a63d2b + a04d2a3 commit 139c342
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions e2e/features/layers/layer-picker-mobile-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test('Initial state indicates layer count', async () => {
await page.goto(url)
await closeModal(page)
await expect(layerCount).toBeVisible()
await expect(layerCount).toContainText('7')
await expect(layerCount).toContainText('8')
})

test('Expand layer list and show default layers', async () => {
Expand Down Expand Up @@ -189,5 +189,5 @@ test('Collapse sidebar and confirm layer count updated', async () => {
const { layerCount } = selectors
await page.locator('.layer-btn-close').click()
await page.locator('#toggleIconHolder').click()
await expect(layerCount).toContainText('8')
await expect(layerCount).toContainText('9')
})
4 changes: 2 additions & 2 deletions e2e/features/layers/layer-picker-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test('"Unavailable" layers show unavailable icon and tooltip', async () => {
test('Entering search text transitions to search mode', async () => {
const { layersSearchField, layersSearchRow } = selectors
await layersSearchField.fill('ozone')
await expect(layersSearchRow).toHaveCount(9)
await expect(layersSearchRow).toHaveCount(10)
})

test('Updating input changes results', async () => {
Expand Down Expand Up @@ -256,7 +256,7 @@ test('Collapsed sidebar shows updated layer count', async () => {
const { collapsedLayerButton } = selectors
await page.locator('#toggleIconHolder').click()
const layerCount = await page.locator('.layer-count')
await expect(layerCount).toContainText('9 Layers')
await expect(layerCount).toContainText('10 Layers')
await collapsedLayerButton.click()
})

Expand Down
8 changes: 5 additions & 3 deletions e2e/test-utils/hooks/wvHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@ const assertDefaultLayers = async (page) => {
const refLabels = page.locator('#active-Reference_Labels_15m')
const refFeatures = page.locator('#active-Reference_Features_15m')
const coastlines = page.locator('#active-Coastlines_15m')
const trueColorNOAA21 = page.locator('#active-VIIRS_NOAA21_CorrectedReflectance_TrueColor')
const trueColorSNPP = page.locator('#active-VIIRS_SNPP_CorrectedReflectance_TrueColor')
const trueColorAqua = page.locator('#active-MODIS_Aqua_CorrectedReflectance_TrueColor')
const trueColorMODIS = page.locator('#active-MODIS_Terra_CorrectedReflectance_TrueColor')
const trueColorNOAA = page.locator('#active-VIIRS_NOAA20_CorrectedReflectance_TrueColor')
await expect(layerItem).toHaveCount(7)
const trueColorNOAA20 = page.locator('#active-VIIRS_NOAA20_CorrectedReflectance_TrueColor')
await expect(layerItem).toHaveCount(8)
await expect(refLabels).toBeVisible()
await expect(refFeatures).toBeVisible()
await expect(coastlines).toBeVisible()
await expect(trueColorNOAA21).toBeVisible()
await expect(trueColorSNPP).toBeVisible()
await expect(trueColorAqua).toBeVisible()
await expect(trueColorMODIS).toBeVisible()
await expect(trueColorNOAA).toBeVisible()
await expect(trueColorNOAA20).toBeVisible()
}

const assertCategories = async (page) => {
Expand Down

0 comments on commit 139c342

Please sign in to comment.