[arvados] updated: 2.7.0-6585-gfa6cf6b0c3
git repository hosting
git at public.arvados.org
Fri May 17 13:31:47 UTC 2024
Summary of changes:
services/workbench2/cypress/e2e/details-card.cy.js | 33 ++++++----------------
1 file changed, 9 insertions(+), 24 deletions(-)
via fa6cf6b0c3f6b380443ebeeefaa994347db25415 (commit)
from 3bb8e68085f2179068c325d2d419b276f0b07fa0 (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 fa6cf6b0c3f6b380443ebeeefaa994347db25415
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Fri May 17 09:31:43 2024 -0400
21224: fixed project card test
Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/cypress/e2e/details-card.cy.js b/services/workbench2/cypress/e2e/details-card.cy.js
index 55ec6ad7d2..6510d8a87b 100644
--- a/services/workbench2/cypress/e2e/details-card.cy.js
+++ b/services/workbench2/cypress/e2e/details-card.cy.js
@@ -104,9 +104,10 @@ describe('Project Details Card tests', function () {
});
it('shows the appropriate buttons in the multiselect toolbar', () => {
- const msButtonTooltips = ['View details', 'Open in new tab', 'Copy link to clipboard'];
-
- const msOverflowMenuButtonTooltips = [
+ const msButtonTooltips = [
+ 'View details',
+ 'Open in new tab',
+ 'Copy link to clipboard',
'Open with 3rd party client',
'API Details',
'Share',
@@ -137,34 +138,19 @@ describe('Project Details Card tests', function () {
for (let i = 0; i < msButtonTooltips.length; i++) {
cy.get('[data-cy=multiselect-button]').eq(i).should('exist');
cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseover');
- cy.waitForDom()
+ cy.waitForDom();
cy.get('body').within(() => {
cy.contains(msButtonTooltips[i]).should('exist');
});
cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseout');
}
-
- cy.get('[data-cy=overflow-menu-button]').click();
- cy.get('[data-cy=overflow-menu]')
- .should('be.visible')
- .within(() => {
- cy.get('[data-cy=multiselect-button]').should('exist');
-
- for (let i = 0; i < msOverflowMenuButtonTooltips.length; i++) {
- cy.get('li')
- .eq(i)
- .within(() => {
- cy.get(`span`).should('have.prop', 'title', msOverflowMenuButtonTooltips[i]);
- });
- }
- });
});
it('should toggle description display', () => {
const projName = `Test project (${Math.floor(999999 * Math.random())})`;
//must be long enough to require a 2nd line
const projDescription =
- 'Science! true daughter of Old Time thou art! Who alterest all things with thy peering eyes. Why preyest thou thus upon the poet’s heart, Vulture, whose wings are dull realities? '
+ 'Science! true daughter of Old Time thou art! Who alterest all things with thy peering eyes. Why preyest thou thus upon the poet’s heart, Vulture, whose wings are dull realities? ';
cy.loginAs(adminUser);
// Create project
@@ -246,10 +232,9 @@ describe('Project Details Card tests', function () {
cy.window().then((win) => {
win.navigator.clipboard.readText().then((text) => {
//wait is necessary due to known issue with cypress at 13.7.1
- cy.wait(1000)
+ cy.wait(1000);
expect(text).to.match(new RegExp(`Importance: Critical`));
- })
- }
- );
+ });
+ });
});
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list