Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/e2e/helpers/viewFilteringSelectionSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ const addRow = (title, selection, multiSelection, checked) => {
cy.get('[data-cy="createRowSaveButton"]').click()
cy.get('[data-cy="createRowModal"]').should('not.exist')
cy.get('body').then($body => {
$body.find('.toastify.toast-success .toast-close').each((_, el) => el.click())
$body.find('[class*="toast_success"] [class*="toastClose"]').each((_, el) => el.click())
})
}
4 changes: 2 additions & 2 deletions cypress/e2e/tables-table.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('Manage a table', () => {
cy.get('[data-cy="editTableModal"] #description-editor .tiptap.ProseMirror').type('Updated ToDo List description')
cy.get('[data-cy="editTableSaveBtn"]').should('be.enabled').click()

cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
// cy.get('.app-navigation__list').contains('ToDo list').should('exist')
cy.contains('.text-editor__content p', 'Updated ToDo List description').should('be.visible')
})
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('Manage a table', () => {
cy.get('[data-cy="transferTableModal"] input[type="search"]').clear().type(targetUserTransfer.userId)
cy.contains('.vs__dropdown-menu li', targetUserTransfer.userId).click()
cy.get('[data-cy="transferTableButton"]').should('be.enabled').click()
cy.get('.toastify.toast-success').should('be.visible')
cy.get('[class*="toast_success"]').should('be.visible')
cy.get('.app-navigation__list').contains('test table').should('not.exist')
cy.login(targetUserTransfer)
cy.visit('apps/tables')
Expand Down
26 changes: 13 additions & 13 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Cypress.Commands.add('deleteTable', (title) => {
cy.get('[data-cy="dataTableEditTableBtn"]').click()
cy.get('[data-cy="editTableModal"] [data-cy="editTableDeleteBtn"]').click()
cy.get('[data-cy="editTableModal"] [data-cy="editTableConfirmDeleteBtn"]').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('[data-cy="navigationTableItem"]').contains(title).should('not.exist')
})

Expand Down Expand Up @@ -235,7 +235,7 @@ Cypress.Commands.add('createUsergroupColumn', (title, selectUsers, selectGroups,
})

cy.get('[data-cy="createColumnSaveBtn"]').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('[data-cy="ncTable"] table tr th').contains(title).should('exist')
})

Expand All @@ -254,7 +254,7 @@ Cypress.Commands.add('createTextLinkColumn', (title, ressourceProvider, isFirstC
)
cy.get('.modal-container button').contains('Save').click()

cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -278,7 +278,7 @@ Cypress.Commands.add('createSelectionColumn', (title, options, defaultOption, is
})
cy.get('.modal-container button').contains('Save').click()

cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -305,7 +305,7 @@ Cypress.Commands.add('createSelectionMultiColumn', (title, options, defaultOptio
})
cy.get('.modal-container button').contains('Save').click()

cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -319,7 +319,7 @@ Cypress.Commands.add('createTextLineColumn', (title, defaultValue, maxLength, is
cy.get('[data-cy="TextLineForm"] input').eq(1).type(maxLength)
}
cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -334,7 +334,7 @@ Cypress.Commands.add('createDatetimeColumn', (title, setNow, isFirstColumn) => {
}

cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -350,7 +350,7 @@ Cypress.Commands.add('createDatetimeDateColumn', (title, setNow, isFirstColumn)
}

cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -366,7 +366,7 @@ Cypress.Commands.add('createDatetimeTimeColumn', (title, setNow, isFirstColumn)
}

cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand Down Expand Up @@ -395,7 +395,7 @@ Cypress.Commands.add('createNumberColumn', (title, defaultValue, decimals, min,
cy.get('[data-cy="NumberForm"] input').eq(5).clear().type(suffix)
}
cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -409,7 +409,7 @@ Cypress.Commands.add('createNumberProgressColumn', (title, defaultValue, isFirst
cy.get('[data-cy="NumberProgressForm"] input').eq(0).clear().type(defaultValue)
}
cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -425,7 +425,7 @@ Cypress.Commands.add('createNumberStarsColumn', (title, defaultValue, isFirstCol
}
}
cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand All @@ -440,7 +440,7 @@ Cypress.Commands.add('createSelectionCheckColumn', (title, defaultValue, isFirst
cy.get('[data-cy="selectionCheckFormDefaultSwitch"]').click()
}
cy.get('.modal-container button').contains('Save').click()
cy.wait(10).get('.toastify.toast-success').should('be.visible')
cy.wait(10).get('[class*="toast_success"]').should('be.visible')
cy.get('.custom-table table tr th .cell').contains(title).should('exist')
})

Expand Down
Loading
Loading