[arvados-workbench2] updated: 2.7.0-255-g138d68c4
git repository hosting
git at public.arvados.org
Tue Dec 12 18:02:42 UTC 2023
Summary of changes:
cypress/integration/collection.spec.js | 43 ++++++++++++++++++++++++++++++++++
cypress/integration/process.spec.js | 6 ++---
cypress/integration/project.spec.js | 4 ++--
3 files changed, 48 insertions(+), 5 deletions(-)
via 138d68c43084a834bb566c09d2e8e535564cef40 (commit)
from a4e17b9490ae18d733ea30fbb3cb6dde90f60dbe (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 138d68c43084a834bb566c09d2e8e535564cef40
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Tue Dec 12 13:02:31 2023 -0500
21128: added toolbar test to collection spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js
index f83a9741..54c570f7 100644
--- a/cypress/integration/collection.spec.js
+++ b/cypress/integration/collection.spec.js
@@ -32,6 +32,45 @@ describe("Collection panel tests", function () {
cy.clearLocalStorage();
});
+ it('shows the appropriate buttons in the toolbar', () => {
+
+ const msButtonTooltips = [
+ 'API Details',
+ 'Add to Favorites',
+ 'Copy to clipboard',
+ 'Edit collection',
+ 'Make a copy',
+ 'Move to',
+ 'Move to trash',
+ 'Open in new tab',
+ 'Open with 3rd party client',
+ 'Share',
+ 'View details',
+ ];
+
+ cy.loginAs(activeUser);
+ const name = `Test collection ${Math.floor(Math.random() * 999999)}`;
+ cy.get("[data-cy=side-panel-button]").click({force: true});
+ cy.get("[data-cy=side-panel-new-collection]").click();
+ cy.get("[data-cy=form-dialog]")
+ .should("contain", "New collection")
+ .within(() => {
+ cy.get("[data-cy=name-field]").within(() => {
+ cy.get("input").type(name);
+ });
+ cy.get("[data-cy=form-submit-btn]").click();
+ });
+ cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click();
+ cy.waitForDom()
+ cy.get('[data-cy=data-table-row]').contains(name).should('exist').parent().parent().parent().parent().click()
+ cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length)
+ for (let i = 0; i < msButtonTooltips.length; 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');
+ }
+ })
+
it("allows to download mountain duck config for a collection", () => {
cy.createCollection(adminUser.token, {
name: `Test collection ${Math.floor(Math.random() * 999999)}`,
@@ -125,6 +164,8 @@ describe("Collection panel tests", function () {
cy.get("[data-cy=form-dialog]").should("exist").and("contain", "Collection with the same name already exists");
});
+
+
it("uses the property editor (from edit dialog) with vocabulary terms", function () {
cy.createCollection(adminUser.token, {
name: `Test collection ${Math.floor(Math.random() * 999999)}`,
@@ -168,6 +209,8 @@ describe("Collection panel tests", function () {
});
});
+
+
it("uses the editor (from details panel) with vocabulary terms", function () {
cy.createCollection(adminUser.token, {
name: `Test collection ${Math.floor(Math.random() * 999999)}`,
diff --git a/cypress/integration/process.spec.js b/cypress/integration/process.spec.js
index 3eba1200..7f77815b 100644
--- a/cypress/integration/process.spec.js
+++ b/cypress/integration/process.spec.js
@@ -91,7 +91,7 @@ describe("Process tests", function () {
}
describe('Multiselect Toolbar', () => {
- it('shows the appropriate buttons for process resource', () => {
+ it('shows the appropriate buttons in the toolbar', () => {
const msButtonTooltips = [
'API Details',
@@ -123,8 +123,8 @@ describe("Process tests", function () {
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]').should('have.length', msButtonTooltips.length)
+ for (let i = 0; i < msButtonTooltips.length; 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');
diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js
index 4ad6142e..e6185c10 100644
--- a/cypress/integration/project.spec.js
+++ b/cypress/integration/project.spec.js
@@ -213,8 +213,8 @@ describe("Project tests", function () {
cy.go('back')
cy.get('[data-cy=data-table-row]').contains(projName).should('exist').parent().parent().parent().click()
- cy.get('[data-cy=multiselect-button]').should('have.length', 12).eq(3)
- for (let i = 0; i < 12; i++) {
+ cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length)
+ for (let i = 0; i < msButtonTooltips.length; 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');
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list