Skip to content

Commit

Permalink
updated test urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcariello committed Mar 11, 2024
1 parent fb970ac commit bda8111
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions e2e/features/classification/classification-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
const { test, expect } = require('@playwright/test')
let page

const floodOnlyGrayUrl = 'http://localhost:3000/?l=MODIS_Combined_Flood_2-Day(disabled=3-0)&lg=true&t=2023-12-07-T18%3A49%3A23Z'
const floodGrayAndBlueUrl = 'http://localhost:3000/?l=MODIS_Combined_Flood_2-Day(disabled=3-1)&lg=true&t=2023-12-07-T18%3A49%3A23Z'
const floodAllColorsUrl = 'http://localhost:3000/?v=40.26574028225701,22.7438297693855,53.256765605078826,33.4181513838979&l=MODIS_Combined_Flood_2-Day&lg=true&t=2023-01-07-T18%3A49%3A23Z'
const floodOnlyGrayUrl = 'http://localhost:3000/?v=-141,-32,21,66&df=true&l=MODIS_Combined_Flood_2-Day(disabled=3-0)&lg=true&t=2023-12-07-T18%3A49%3A23Z'
const floodGrayAndBlueUrl = 'http://localhost:3000/?v=-139,-44,23,54&df=true&l=MODIS_Combined_Flood_2-Day(disabled=3-1)&lg=true&t=2023-12-07-T18%3A49%3A23Z'
const floodAllColorsUrl = 'http://localhost:3000/?v=40,22,53,33&df=true&l=MODIS_Combined_Flood_2-Day&lg=true&t=2023-01-07-T18%3A49%3A23Z'

test.describe.configure({ mode: 'serial' })

test.beforeAll(async ({ browser }) => {
test.beforeEach(async ({ browser }) => {
page = await browser.newPage()
})

test.afterAll(async () => {
test.afterEach(async () => {
await page.close()
})

test('Flood 2 Day only Gray', async () => {
await page.goto(floodOnlyGrayUrl)
await page.waitForLoadState('load')
await page.waitForTimeout(3000)
await page.waitForTimeout(5000)

await expect(page).toHaveScreenshot('only-gray.png', {
fullPage: true,
Expand All @@ -30,7 +30,7 @@ test('Flood 2 Day only Gray', async () => {
test('Flood 2 Day Gray & Blue', async () => {
await page.goto(floodGrayAndBlueUrl)
await page.waitForLoadState('load')
await page.waitForTimeout(3000)
await page.waitForTimeout(5000)

await expect(page).toHaveScreenshot('gray-and-blue.png', {
fullPage: true,
Expand All @@ -41,7 +41,7 @@ test('Flood 2 Day Gray & Blue', async () => {
test('Flood 2 Day All Colors', async () => {
await page.goto(floodAllColorsUrl)
await page.waitForLoadState('load')
await page.waitForTimeout(3000)
await page.waitForTimeout(5000)

await expect(page).toHaveScreenshot('all-colors.png', {
fullPage: true,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bda8111

Please sign in to comment.