Skip to content

Commit

Permalink
EDSC-3937: Fixes some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
macrouch committed Jul 12, 2024
1 parent 31f8a32 commit 9817cfc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ describe('Path /search/granules/collection-details', () => {
cy.visit('/search/granules/collection-details?p=C1996546500-GHRC_DAAC')

cy.get('.collection-details-minimap').within(() => {
cy.get('.leaflet-interactive').should('have.attr', 'd', 'M0 180L360 180L360 0L0 0L0 180z')
cy.get('.leaflet-interactive').should('have.attr', 'd', 'M0 180L360 180L360 0L0 0z')
})
})
})
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@
"start:cache": "docker-compose up -d",
"stop:cache": "docker-compose down",
"jest:prepare-ci": "bin/cypress-prepare-ci",
"start:ci": "vite --port 8080",
"prestart-ci": "npm run build",
"start-ci": "npm run preview",
"cypress:open": "cypress open",
"cypress:run": "cypress run -c video=false",
"cypress:ci": "start-server-and-test start:ci http-get://localhost:8080 cypress:run",
"cypress:ci": "start-server-and-test start-ci http-get://localhost:8080 cypress:run",
"cypress:prepare-ci": "bin/cypress-prepare-ci",
"lint": "eslint .",
"invoke-local": "npx serverless invoke local --stage invokeLocal",
"playwright:prepare-ci": "bin/playwright-prepare-ci",
"playwright:ci": "start-server-and-test start:ci http-get://localhost:8080 playwright",
"playwright:ci:1/3": "start-server-and-test start:ci http-get://localhost:8080 'npm run playwright -- --shard=1/3'",
"playwright:ci:2/3": "start-server-and-test start:ci http-get://localhost:8080 'npm run playwright -- --shard=2/3'",
"playwright:ci:3/3": "start-server-and-test start:ci http-get://localhost:8080 'npm run playwright -- --shard=3/3'",
"playwright:ci": "start-server-and-test start-ci http-get://localhost:8080 playwright",
"playwright:ci:1/3": "start-server-and-test start-ci http-get://localhost:8080 'npm run playwright -- --shard=1/3'",
"playwright:ci:2/3": "start-server-and-test start-ci http-get://localhost:8080 'npm run playwright -- --shard=2/3'",
"playwright:ci:3/3": "start-server-and-test start-ci http-get://localhost:8080 'npm run playwright -- --shard=3/3'",
"preplaywright": "rm -rf playwright-coverage/ .nyc_output/",
"playwright": "NODE_ENV=playwright nyc playwright test --reporter=list",
"playwright:ui": "npx playwright test --ui",
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/map/map.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,8 @@ test.describe('Map interactions', () => {

// Point
const pointValues = {
chromium: 'margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate3d(427px, 182px, 0px); z-index: 182; outline-style: none;',
firefox: 'margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate3d(427px, 182px, 0px); z-index: 182; outline-style: none;',
chromium: 'margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate3d(427px, 182px, 0px); z-index: 182; outline: none;',
firefox: 'margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate3d(427px, 182px, 0px); z-index: 182; outline: none;',
webkit: 'margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate3d(427px, 182px, 0px); z-index: 182; outline-style: none;'
}
await expect(page.locator('.leaflet-marker-icon.leaflet-interactive').nth(0)).toHaveAttribute('style', pointValues[browser])
Expand Down Expand Up @@ -1066,7 +1066,7 @@ test.describe('Map interactions', () => {

const urlValues = {
chromium: 'search?lat=13.999032615512775',
firefox: 'search?lat=13.99892766713073',
firefox: 'search?lat=13.999207532962274',
webkit: 'search?lat=13.999032615512775'
}
await expect(page).toHaveURL(urlValues[browser])
Expand Down

0 comments on commit 9817cfc

Please sign in to comment.