[arvados-workbench2] updated: 2.7.0-254-ga4e17b94
git repository hosting
git at public.arvados.org
Tue Dec 12 16:22:15 UTC 2023
Summary of changes:
cypress/integration/multiselect-toolbar.spec.js | 3 +-
cypress/integration/process.spec.js | 43 +++++++++++++++++++++++++
2 files changed, 44 insertions(+), 2 deletions(-)
via a4e17b9490ae18d733ea30fbb3cb6dde90f60dbe (commit)
from ce2481a00cf013ad76ba9e0ca82519e9e82c3a1c (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 a4e17b9490ae18d733ea30fbb3cb6dde90f60dbe
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Tue Dec 12 11:22:07 2023 -0500
21128: added toolbar test to process spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/cypress/integration/multiselect-toolbar.spec.js b/cypress/integration/multiselect-toolbar.spec.js
index 4a379215..ef503f7e 100644
--- a/cypress/integration/multiselect-toolbar.spec.js
+++ b/cypress/integration/multiselect-toolbar.spec.js
@@ -28,10 +28,9 @@ describe('Multiselect Toolbar Tests', () => {
cy.clearLocalStorage();
});
- it('exists in DOM', () => {
+ it('exists in DOM in neutral state', () => {
cy.loginAs(activeUser);
cy.get('[data-cy=multiselect-toolbar]').should('exist');
cy.get('[data-cy=multiselect-button]').should('not.exist');
- cy.get('[data-cy=multiselect-alt-button]').should('not.exist');
});
});
diff --git a/cypress/integration/process.spec.js b/cypress/integration/process.spec.js
index 438acbf1..3eba1200 100644
--- a/cypress/integration/process.spec.js
+++ b/cypress/integration/process.spec.js
@@ -90,6 +90,49 @@ describe("Process tests", function () {
});
}
+ describe('Multiselect Toolbar', () => {
+ it('shows the appropriate buttons for process resource', () => {
+
+ const msButtonTooltips = [
+ 'API Details',
+ 'Add to Favorites',
+ 'CANCEL',
+ 'Copy and re-run process',
+ 'Edit process',
+ 'Move to',
+ 'Open in new tab',
+ 'Outputs',
+ 'Remove',
+ 'Share',
+ 'View details',
+ ];
+
+ createContainerRequest(
+ activeUser,
+ `test_container_request ${Math.floor(Math.random() * 999999)}`,
+ "arvados/jobs",
+ ["echo", "hello world"],
+ false,
+ "Committed"
+ ).then(function (containerRequest) {
+ cy.loginAs(activeUser);
+ cy.goToPath(`/processes/${containerRequest.uuid}`);
+ cy.get("[data-cy=process-details]").should("contain", containerRequest.name);
+ cy.get("[data-cy=process-details-attributes-modifiedby-user]").contains(`Active User (${activeUser.user.uuid})`);
+ cy.get("[data-cy=process-details-attributes-runtime-user]").should("not.exist");
+ cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click();
+ cy.waitForDom()
+ cy.get('[data-cy=data-table-row]').contains(containerRequest.name).should('exist').parent().parent().parent().parent().click()
+ cy.get('[data-cy=multiselect-button]').should('have.length', 11).eq(3)
+ for (let i = 0; i < 11; i++) {
+ cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseover');
+ cy.get('body').contains(msButtonTooltips[i]).should('exist')
+ cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseout');
+ }
+ });
+ })
+ })
+
describe("Details panel", function () {
it("shows process details", function () {
createContainerRequest(
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list