19836: removed host from the interceptor
[arvados-workbench2.git] / cypress / integration / banner-tooltip.spec.js
index 11fee98c2b84006ef483dd26b543f53af23d41d1..16235ccd5d0d2178f7577688dcc22394474ac36f 100644 (file)
@@ -60,7 +60,7 @@ describe('Collection panel tests', function () {
     beforeEach(function () {
         cy.clearCookies();
         cy.clearLocalStorage();
-        cy.intercept({ method: 'GET', hostname: 'localhost', url: '**/arvados/v1/config?nocache=*' }, (req) => {
+        cy.intercept({ method: 'GET', url: '**/arvados/v1/config?nocache=*' }, (req) => {
             req.reply((res) => {
                 res.body.Workbench.BannerUUID = collectionUUID;
             });
@@ -68,10 +68,10 @@ describe('Collection panel tests', function () {
     });
 
     it('should re-show the banner', () => {
-        cy.wait(8000);
-
         cy.loginAs(adminUser);
 
+        cy.wait(2000);
+
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
 
         cy.get('[title=Notifications]').click();
@@ -84,10 +84,10 @@ describe('Collection panel tests', function () {
 
 
     it('should show tooltips and remove tooltips as localStorage key is present', () => {
-        cy.wait(8000);
-
         cy.loginAs(adminUser);
 
+        cy.wait(2000);
+
         cy.get('[data-cy=side-panel-tree]').then(($el) => {
             const el = $el.get(0) //native DOM element
             expect(el._tippy).to.exist;