[
'/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.
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');
});
});
const icon = props.icon || DetailsIcon;
const filterWarning: string[] = props.filtersApplied ? ['Filters are applied to the data.'] : [];
const messages = filterWarning.concat(props.messages || ['No items found']);
- return <DefaultView data-cy="data-table-default-view" {...classes} {...{ icon, messages }} />;
+ return <DefaultView {...classes} {...{ icon, messages }} />;
});
{Icon && <Icon className={classnames([classes.icon, classIcon])} />}
{messages.map((msg: string, index: number) => {
return <Typography key={index}
+ data-cy='default-view'
className={classnames([classes.message, classMessage])}>{msg}</Typography>;
})}
</Typography>