[arvados] created: 2.7.0-6214-g7a3dafab86
git repository hosting
git at public.arvados.org
Mon Mar 18 20:04:40 UTC 2024
at 7a3dafab8619722f4061dc04b7f5b36e4701b8a9 (commit)
commit 7a3dafab8619722f4061dc04b7f5b36e4701b8a9
Author: Stephen Smith <stephen at curii.com>
Date: Mon Mar 18 16:03:55 2024 -0400
21600: Add waits and asserts to banner/tooltip tests
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/services/workbench2/cypress/e2e/banner-tooltip.cy.js b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
index 0a0ac75164..63d2c264d8 100644
--- a/services/workbench2/cypress/e2e/banner-tooltip.cy.js
+++ b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
@@ -69,10 +69,13 @@ describe('Banner / tooltip tests', function () {
it('should re-show the banner', () => {
cy.loginAs(adminUser);
+ cy.waitForDom();
cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
+ cy.waitForDom();
+ cy.get('[data-cy=confirmation-dialog]').should('not.exist');
- cy.get('[title=Notifications]').click({ force: true });
+ cy.get('[title=Notifications]').click();
cy.get('li').contains('Restore Banner').click();
cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
@@ -81,6 +84,7 @@ describe('Banner / tooltip tests', function () {
it('should show tooltips and remove tooltips as localStorage key is present', () => {
cy.loginAs(adminUser);
+ cy.waitForDom();
cy.get('[data-cy=side-panel-tree]').then(($el) => {
const el = $el.get(0) //native DOM element
@@ -88,9 +92,12 @@ describe('Banner / tooltip tests', function () {
});
cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
+ cy.waitForDom();
+ cy.get('[data-cy=confirmation-dialog]').should('not.exist');
cy.get('[title=Notifications]').click();
cy.get('li').contains('Disable tooltips').click();
+ cy.waitForDom();
cy.get('[data-cy=side-panel-tree]').then(($el) => {
const el = $el.get(0) //native DOM element
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list