19836: removed host from the interceptor 19836-new-tooltip-impl
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Thu, 16 Feb 2023 14:52:59 +0000 (15:52 +0100)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Thu, 16 Feb 2023 14:52:59 +0000 (15:52 +0100)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

cypress/integration/banner-tooltip.spec.js

index 49b2930105a78a2907046b6fd4f615017e783856..16235ccd5d0d2178f7577688dcc22394474ac36f 100644 (file)
@@ -60,17 +60,18 @@ 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;
             });
         });
-        cy.wait(8000);
     });
 
     it('should re-show the banner', () => {
         cy.loginAs(adminUser);
 
+        cy.wait(2000);
+
         cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
 
         cy.get('[title=Notifications]').click();
@@ -85,6 +86,8 @@ describe('Collection panel tests', function () {
     it('should show tooltips and remove tooltips as localStorage key is present', () => {
         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;