Skip to content

Commit

Permalink
Fix failing e2e tests (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoelBiju committed Jul 29, 2021
1 parent 5cae6cb commit 27a2d50
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ describe('DLS - Datasets Cards', () => {
cy.get('#calculate-size-btn').click({ force: true });
cy.get('#card')
.get('[aria-label="card-more-information"]')
.contains('4.24 GB', { timeout: 10000 });
.contains('5.36 GB', { timeout: 10000 });

cy.get('#dataset-type-tab').click({ force: true });
cy.get('#card')
.get('[aria-label="card-more-information"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('DLS - Visits Cards', () => {
cy.get('#calculate-size-btn').click({ force: true });
cy.get('#card')
.get('[aria-label="card-more-information"]')
.contains('10.25 GB', { timeout: 10000 });
.contains('10.8 GB', { timeout: 10000 });
cy.get('#visit-users-tab').click({ force: true });
cy.get('#card')
.get('[aria-label="card-more-information"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe('DLS - Datasets Table', () => {
cy.contains('#calculate-size-btn', 'Calculate')
.should('exist')
.click({ force: true });
cy.contains('4.24 GB', { timeout: 10000 }).should('be.visible');
cy.contains('5.36 GB', { timeout: 10000 }).should('be.visible');
});

it('and view the dataset type panel', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('DLS - Visits Table', () => {
cy.contains('#calculate-size-btn', 'Calculate')
.should('exist')
.click({ force: true });
cy.contains('10.25 GB', { timeout: 10000 }).should('be.visible');
cy.contains('10.8 GB', { timeout: 10000 }).should('be.visible');
});

// TODO: Since we only have one investigation, we cannot test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ describe('ISIS - Datasets Table', () => {
beforeEach(() => {
// Check that we have received the size from the API as this will produce
// a re-render which can prevent the click.
cy.contains('[aria-rowindex="1"] [aria-colindex="4"]', '5.78 GB').should(
cy.contains('[aria-rowindex="1"] [aria-colindex="4"]', '4.79 GB').should(
'exist'
);

cy.contains('[aria-rowindex="2"] [aria-colindex="4"]', '5.15 GB').should(
cy.contains('[aria-rowindex="2"] [aria-colindex="4"]', '6.07 GB').should(
'exist'
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('ISIS - Investigations Table', () => {
beforeEach(() => {
// Check that we have received the size from the API as this will produce
// a re-render which can prevent the click.
cy.contains('[aria-rowindex="1"] [aria-colindex="7"]', '10.2 GB').should(
cy.contains('[aria-rowindex="1"] [aria-colindex="7"]', '10.27 GB').should(
'exist'
);
});
Expand Down
6 changes: 3 additions & 3 deletions packages/datagateway-dataview/server/e2e-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"datasetGetSize": false,
"datasetGetCount": true
},
"idsUrl": "https://localhost:8181/ids",
"apiUrl": "http://localhost:5000",
"downloadApiUrl": "https://localhost:8181/topcat",
"idsUrl": "https://scigateway-preprod.esc.rl.ac.uk:8181/ids",
"apiUrl": "https://scigateway-preprod.esc.rl.ac.uk/datagateway-api",
"downloadApiUrl": "https://scigateway-preprod.esc.rl.ac.uk:8181/topcat",
"breadcrumbs": {
"proposal": {
"replaceEntity": "investigation",
Expand Down

0 comments on commit 27a2d50

Please sign in to comment.