Skip to content

Commit 8918467

Browse files
committed
Add fake location to teams in Cypress spec
1 parent ac8a0d2 commit 8918467

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cypress/e2e/teams/index.cy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ const TEAMS_COUNT = 35
1313
const teams = generateSequenceArray(TEAMS_COUNT, 1).map((i) => ({
1414
id: i,
1515
name: `Team ${addZeroPadding(i, 3)}`,
16+
location: {
17+
type: 'Point',
18+
// Fake coords under 30 degrees
19+
coordinates: [(30 / TEAMS_COUNT) * i, (30 / TEAMS_COUNT) * i],
20+
},
1621
}))
1722

1823
describe('Teams page', () => {

0 commit comments

Comments
 (0)