Skip to content

Commit

Permalink
Uprage Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Jan 28, 2021
1 parent 962591a commit 8eb8db0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"screenshotsFolder": "cypress/debug",
"fixturesFolder": false,
"video": false,
"retries": 4
"retries": 3
}
4 changes: 4 additions & 0 deletions cypress/specs/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ describe('App', () => {
});

it('visualize dataset with image interpretation as NxImage', () => {
// Wait for default NXimage to finish rendering
cy.get('[data-visible]').should('exist');
cy.get('[data-visible]').should('not.exist');

cy.findByRole('treeitem', { name: 'nexus_entry' }).click();
cy.findByRole('treeitem', { name: 'image' }).click();

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@types/react-slider": "^1.1.0",
"@types/react-window": "^1.8.2",
"babel-loader": "8.1.0",
"cypress": "^6.2.0",
"cypress": "^6.3.0",
"cypress-image-snapshot": "^4.0.1",
"eslint": "^7.14.0",
"eslint-config-galex": "^2.9.4",
Expand Down
1 change: 1 addition & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ They mostly refer to fixable errors, warnings and deprecations or forgotten debu
If your test relies on \`console\` you should mock it:
const errorSpy = mockConsoleMethod('error');
// Your test goes here
errorSpy.mockRestore();
`;
}
Expand Down

0 comments on commit 8eb8db0

Please sign in to comment.