Skip to content

Commit

Permalink
Merge pull request #3 from alan-wu/e2e-testing
Browse files Browse the repository at this point in the history
Sync testIsolation changes
  • Loading branch information
ddjnw1yu authored Nov 8, 2023
2 parents 1a48d6a + 9a6ec3e commit 4658cbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ sw.*
.certs/

cypress/videos
cypress/downloads
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = defineConfig({
viewportWidth: 1600,
viewportHeight: 900,
//Prevent huge amount of time on reloading page
testIsolation: false,
testIsolation: true,
// pageLoadTimeout: 1024*1024*1024,
setupNodeEvents(on, config) {
// implement node event listeners here
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/datasets.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const datasetIds = [127];

datasetIds.forEach(datasetId => {

describe(`Dataset ${datasetId}`, function () {
describe(`Dataset ${datasetId}`, {testIsolation: false }, function () {
before(function () {
cy.visit(`/datasets/${datasetId}?type=dataset`)
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ describe('Homepage', () => {
cy.visit('')
});
it('Banner', () => {
cy.get('h1').should('contain', 'Welcome to the SPARC Portal')
cy.get('h1').should('contain', 'SPARC')
})
it('Navigation Bar', () => {
cy.get('.mobile-navigation > :nth-child(1) > :nth-child(1) > a').should('contain', 'Data')
Expand Down

0 comments on commit 4658cbd

Please sign in to comment.