Browse Source

Merge pull request #6610 from weseek/support/modify-tastr-transparency

support: wait for toastr to change its color occured by mouseover
Yohei Shiina 3 years ago
parent
commit
d3c69bb675

+ 3 - 2
packages/app/test/cypress/integration/20-basic-features/use-tools.spec.ts

@@ -193,9 +193,10 @@ context('Tag Oprations', () =>{
       cy.get('div.modal-footer > button').click();
     });
 
-    cy.get('.toast').should('be.visible').invoke('attr', 'style', 'opacity: 1');
+    cy.get('.toast').should('be.visible').trigger('mouseover');
     cy.get('.grw-taglabels-container > form > a').contains(tag).should('exist');
-
+    /* eslint-disable cypress/no-unnecessary-waiting */
+    cy.wait(150); // wait for toastr to change its color occured by mouseover
     cy.screenshot(`${ssPrefix}4-click-done`, {capture: 'viewport'});
 
   });