- cy.intercept({ method: 'GET', url: '**/arvados/v1/config?nocache=*' }, (req) => {
- req.on('response', (res) => {
- res.body.Workbench.BannerUUID = collectionUUID;
- });
+ //login here instead of in specific tests to preserve localStorage and intercept listener
+ cy.loginAs(adminUser);
+
+ //must be in localstorage to have banner option in notifications menu
+ //it doesn't matter what the value is, as long as it's truthy
+ window.localStorage.setItem('bannerFileData', 'foo');
+
+ cy.intercept({ method: 'GET', url: '**/arvados/v1/config?nocache=*' }, (req) => {
+ req.on('response', (res) => {
+ res.body.Workbench.BannerUUID = collectionUUID;