projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21535: test spec tweaks Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados.git]
/
services
/
workbench2
/
cypress
/
e2e
/
page-not-found.cy.js
diff --git
a/services/workbench2/cypress/e2e/page-not-found.cy.js
b/services/workbench2/cypress/e2e/page-not-found.cy.js
index e147d740d3697b6c0d70efeaee57e39dc3e2d7d2..7cffd1079be8f7909b436c60355f6c494f5040a4 100644
(file)
--- a/
services/workbench2/cypress/e2e/page-not-found.cy.js
+++ b/
services/workbench2/cypress/e2e/page-not-found.cy.js
@@
-29,8
+29,6
@@
describe('Page not found tests', function() {
[
'/projects/zzzzz-j7d0g-nonexistingproj',
'/projects/zzzzz-tpzed-nonexistinguser',
[
'/projects/zzzzz-j7d0g-nonexistingproj',
'/projects/zzzzz-tpzed-nonexistinguser',
- '/processes/zzzzz-xvhdp-nonexistingproc',
- '/collections/zzzzz-4zz18-nonexistingcoll'
].forEach(function(path) {
// Using de slower loginAs() method to avoid bumping into dialog
// dismissal issues that are not related to this test.
].forEach(function(path) {
// Using de slower loginAs() method to avoid bumping into dialog
// dismissal issues that are not related to this test.
@@
-40,6
+38,17
@@
describe('Page not found tests', function() {
cy.goToPath(path);
// then
cy.goToPath(path);
// then
+ cy.get('[data-cy=default-view]').should('exist');
+ });
+
+ [
+ '/processes/zzzzz-xvhdp-nonexistingproc',
+ '/collections/zzzzz-4zz18-nonexistingcoll'
+ ].forEach(function(path) {
+ cy.loginAs(adminUser);
+
+ cy.goToPath(path);
+
cy.get('[data-cy=not-found-view]').should('exist');
});
});
cy.get('[data-cy=not-found-view]').should('exist');
});
});