Skip to content

Commit

Permalink
Updest cypress testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Oct 9, 2024
1 parent f7cfb31 commit 586680f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cypress/component/MapContent.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ describe('MapContent', () => {
//Check for two content containers
cy.get('.contentvuer').should('be.visible').should('have.length', 2);

//Wait for the mouse dataset request
cy.wait('@mouseDataset', {timeout: 20000});

//Open the sidebar
cy.get('.side-bar > .open-tab').should('exist').click();
Expand All @@ -154,6 +152,9 @@ describe('MapContent', () => {
//Check number of dataset card, it should be 1
cy.get('.dataset-card-container').should('have.length', 1);

//Wait for the mouse dataset request
cy.wait('@mouseDataset', {timeout: 20000});

//Check how many tags in the dataset
cy.get('.box-card .container button').should('have.length', 6);

Expand Down
2 changes: 1 addition & 1 deletion cypress/fixtures/stubResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"dataset_revision": "",
"dataset_version": "3",
"description": "Test this",
"doi": "https://doi.org/10.26275/z1ga-dflp",
"doi": "https://doi.org/10.26275/llxf-edeh",
"identifier": "N:dataset:a59a7c4c-0234534e24b31",
"mbf-segmentation": [
{
Expand Down

0 comments on commit 586680f

Please sign in to comment.