Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@turf/envelope": "^7.1.0",
"d3": "^7.3.0",
"date-fns": "^2.28.0",
"deck.gl": "^9.0.33",
"deck.gl": "^9.1.3",
"gatsby": "^5.13.7",
"gatsby-plugin-csp": "^1.1.4",
"gatsby-plugin-google-gtag": "5.13.1",
Expand Down
9 changes: 6 additions & 3 deletions playwright/e2e/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,13 @@ test.describe("Homepage", () => {
await page.click('div[class="slider-slide slide-visible slide-current"]')

// wait for page load
await page.waitForNavigation()
await page.waitForURL("**/explore/campaigns/")

// Check if the URL includes "/explore/campaigns" and the header has the expected text
expect(page.url()).toContain("/explore/campaigns")
// check if Explore campaigns page was loaded with some region filter enabled
const regionFilterChip = await page.textContent(
"[data-cy=filter-chip]"
)
expect(regionFilterChip).toContain("region: ")
})
})
})
10 changes: 9 additions & 1 deletion src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ export const FEEDBACK_FORM_URL =
export const API_DOCUMENTATION_URL =
"https://nasa-impact.github.io/admg-backend/documentation/api_doc.html"

export const MOVING_PLATFORMS = ["Jet", "Prop", "UAV", "AUV", "Ships/Boats"]
export const MOVING_PLATFORMS = [
"Jet",
"Prop",
"UAV",
"AUV",
"USV",
"Drifting Buoy",
"Ships/Boats",
]
Loading
Loading