verifyProjectDescription(projName, null);
});
+ it('shows the appropriate buttons in the multiselect toolbar', () => {
+
+ const msButtonTooltips = [
+ 'API Details',
+ 'Add to Favorites',
+ 'Copy to clipboard',
+ 'Edit project',
+ 'Freeze Project',
+ 'Move to',
+ 'Move to trash',
+ 'New project',
+ 'Open in new tab',
+ 'Open with 3rd party client',
+ 'Share',
+ 'View details',
+ ];
+
+ cy.loginAs(activeUser);
+ const projName = `Test project (${Math.floor(999999 * Math.random())})`;
+ cy.get('[data-cy=side-panel-button]').click();
+ cy.get('[data-cy=side-panel-new-project]').click();
+ cy.get('[data-cy=form-dialog]')
+ .should('contain', 'New Project')
+ .within(() => {
+ cy.get('[data-cy=name-field]').within(() => {
+ cy.get('input').type(projName);
+ });
+ })
+ cy.get("[data-cy=form-submit-btn]").click();
+ cy.waitForDom()
+ 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', 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("creates new project on home project and then a subproject inside it", function () {
const createProject = function (name, parentName) {
cy.get("[data-cy=side-panel-button]").click();
});
});
- it("should be able to froze own project", () => {
+ it("should be able to freeze own project", () => {
cy.getAll("@mainProject").then(([mainProject]) => {
cy.loginAs(activeUser);
});
});
- it("should be able to froze not owned project", () => {
+ it("should be able to freeze not owned project", () => {
cy.getAll("@adminProject").then(([adminProject]) => {
cy.loginAs(activeUser);
});
});
- it("should be able to unfroze project if user is an admin", () => {
+ it("should be able to unfreeze project if user is an admin", () => {
cy.getAll("@adminProject").then(([adminProject]) => {
cy.loginAs(adminUser);
[
{
name: "Name",
- asc: "collections.name asc,container_requests.name asc,groups.name asc",
- desc: "collections.name desc,container_requests.name desc,groups.name desc",
+ asc: "collections.name asc,container_requests.name asc,groups.name asc,container_requests.created_at desc",
+ desc: "collections.name desc,container_requests.name desc,groups.name desc,container_requests.created_at desc",
},
{
name: "Last Modified",
- asc: "collections.modified_at asc,container_requests.modified_at asc,groups.modified_at asc",
- desc: "collections.modified_at desc,container_requests.modified_at desc,groups.modified_at desc",
+ asc: "collections.modified_at asc,container_requests.modified_at asc,groups.modified_at asc,container_requests.created_at desc",
+ desc: "collections.modified_at desc,container_requests.modified_at desc,groups.modified_at desc,container_requests.created_at desc",
},
{
name: "Date Created",
- asc: "collections.created_at asc,container_requests.created_at asc,groups.created_at asc",
- desc: "collections.created_at desc,container_requests.created_at desc,groups.created_at desc",
+ asc: "collections.created_at asc,container_requests.created_at asc,groups.created_at asc,container_requests.created_at desc",
+ desc: "collections.created_at desc,container_requests.created_at desc,groups.created_at desc,container_requests.created_at desc",
},
{
name: "Trash at",
- asc: "collections.trash_at asc,container_requests.trash_at asc,groups.trash_at asc",
- desc: "collections.trash_at desc,container_requests.trash_at desc,groups.trash_at desc",
+ asc: "collections.trash_at asc,container_requests.trash_at asc,groups.trash_at asc,container_requests.created_at desc",
+ desc: "collections.trash_at desc,container_requests.trash_at desc,groups.trash_at desc,container_requests.created_at desc",
},
{
name: "Delete at",
- asc: "collections.delete_at asc,container_requests.delete_at asc,groups.delete_at asc",
- desc: "collections.delete_at desc,container_requests.delete_at desc,groups.delete_at desc",
+ asc: "collections.delete_at asc,container_requests.delete_at asc,groups.delete_at asc,container_requests.created_at desc",
+ desc: "collections.delete_at desc,container_requests.delete_at desc,groups.delete_at desc,container_requests.created_at desc",
},
].forEach(test => {
cy.get("[data-cy=project-panel] table thead th").contains(test.name).click();