Skip to content

Commit

Permalink
#1464 - fix ISIS datafiles table e2e tests
Browse files Browse the repository at this point in the history
needed different route intercepts for new id check function
  • Loading branch information
louise-davies committed May 23, 2023
1 parent 1e87608 commit c4e9632
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
describe('ISIS - Datafiles Table', () => {
beforeEach(() => {
cy.intercept('**/instruments/**').as('instruments');
cy.intercept('**/facilitycycles/19').as('facilityCycles');
cy.intercept('**/datasets/79').as('datasets');
cy.intercept('**/instruments/1').as('instrument');
cy.intercept('**/facilitycycles/19').as('facilityCycle');
cy.intercept('**/investigations/19').as('investigation');
cy.intercept('**/datasets/79').as('dataset');
cy.intercept('**/investigations**').as('idCheck');
cy.intercept('**/datafiles/count?*').as('datafilesCount');
cy.intercept('**/datafiles?order=*').as('datafilesOrder');
cy.login();
Expand All @@ -14,10 +16,11 @@ describe('ISIS - Datafiles Table', () => {
'/browse/instrument/1/facilityCycle/19/investigation/19/dataset/79/datafile'
).wait(
[
'@instruments',
'@instruments',
'@facilityCycles',
'@datasets',
'@idCheck',
'@instrument',
'@facilityCycle',
'@investigation',
'@dataset',
'@datafilesCount',
'@datafilesOrder',
],
Expand Down

0 comments on commit c4e9632

Please # to comment.