Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Oct 2, 2024
1 parent 6b116f9 commit 5b5b46a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/cypress/e2e/import/constants/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const USERS = [
code: 'occhab',
},
},
availableDestinations: ['synthese', 'occhab'],
dataset: 'JDD-TEST-IMPORT-ADMIN',
datasetId: 9999,
},
Expand All @@ -29,6 +30,11 @@ export const USERS = [
count: 1,
code: 'synthese',
},
Occhab: {
count: 0,
code: 'occhab',
},
availableDestinations: ['synthese'],
},
dataset: 'JDD-TEST-IMPORT-2',
datasetId: 9998,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Import List - Toolbar - Destinations', () => {
});

it('Should filter the list with every available destinations', () => {
const destinations = availableDestinations(user.destinations);
const destinations = availableDestinations(user.availableDestinations);
// Select every destination, one after the other
for (const destinationKey of destinations) {
cy.get(SELECTOR_IMPORT_LIST_TOOLBAR).within(() => {
Expand Down

0 comments on commit 5b5b46a

Please sign in to comment.