[arvados] updated: 2.7.0-6217-gbe3378300d
git repository hosting
git at public.arvados.org
Tue Mar 19 13:21:09 UTC 2024
Summary of changes:
.../workbench2/cypress/e2e/banner-tooltip.cy.js | 28 ++++++++++------------
1 file changed, 13 insertions(+), 15 deletions(-)
via be3378300d63ce537a5843c5fc23ecd76f4f1f5c (commit)
from 34fba73b216678a3f447d462c5e487a4011bc700 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit be3378300d63ce537a5843c5fc23ecd76f4f1f5c
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Tue Mar 19 09:21:01 2024 -0400
21600: incorporated Stephens changes Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/cypress/e2e/banner-tooltip.cy.js b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
index 3b4a4fac47..63d2c264d8 100644
--- a/services/workbench2/cypress/e2e/banner-tooltip.cy.js
+++ b/services/workbench2/cypress/e2e/banner-tooltip.cy.js
@@ -60,7 +60,7 @@ describe('Banner / tooltip tests', function () {
.should('contain', 'tooltips.json');
cy.intercept({ method: 'GET', url: '**/arvados/v1/config?nocache=*' }, (req) => {
- req.reply((res) => {
+ req.on('response', (res) => {
res.body.Workbench.BannerUUID = collectionUUID;
});
});
@@ -69,14 +69,14 @@ 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.waitForDom();
- cy.get('[data-cy=restore-banner-li]').click({ force: true });
- cy.waitForDom();
+ cy.get('[title=Notifications]').click();
+ cy.get('li').contains('Restore Banner').click();
cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
});
@@ -84,26 +84,24 @@ 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) => {
- if(!!$el) {
- const el = $el.get(0) //native DOM element
- expect(el._tippy).to.not.be.undefined;
- }
+ const el = $el.get(0) //native DOM element
+ expect(el._tippy).to.exist;
});
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=disable-tooltip-toggle]').click({ force: true });
cy.get('[data-cy=side-panel-tree]').then(($el) => {
- if(!!$el) {
- const el = $el.get(0) //native DOM element
- expect(el._tippy).to.be.undefined;
- }
+ const el = $el.get(0) //native DOM element
+ expect(el._tippy).to.be.undefined;
});
});
-});
\ No newline at end of file
+});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list