cy.get('[data-cy=multiselect-button]').should('not.exist');
cy.get('[data-cy=multiselect-alt-button]').should('not.exist');
});
-
- it('can manipulate a project resource', () => {
- 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', 12).eq(3).trigger('mouseover');
- cy.get('body').contains('Edit project').should('exist')
- cy.get('[data-cy=multiselect-button]').eq(3).click()
- cy.get("[data-cy=form-dialog]").within(() => {
- cy.get("div[contenteditable=true]").click().type('this is a test');
- cy.get("[data-cy=form-submit-btn]").click();
- });
- });
});
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', 12).eq(3)
+ for (let i = 0; i < 12; 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();
const { classes, checkedList } = this.props;
return (
<input
+ data-cy={`multiselect-checkbox-${uuid}`}
type="checkbox"
name={uuid}
className={classes.checkBox}
const { onRowClick, onRowDoubleClick, extractKey, classes, currentItemUuid, currentRoute } = this.props;
return (
<TableRow
+ data-cy={'data-table-row'}
hover
key={extractKey ? extractKey(item) : index}
onClick={event => onRowClick && onRowClick(event, item)}