Skip to content

Commit 92fe701

Browse files
author
Florian
authored
Merge pull request #737 from nextcloud/backport/733/stable0.6
[stable0.6] fix(test): deactivate the deactivation of the contacts search provider
2 parents c0049ad + 295d183 commit 92fe701

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

cypress/e2e/tables-rows.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Rows for a table', () => {
2323
cy.get('.modal__content [aria-label="Increase stars"]').click().click()
2424
cy.get('.modal-container button').contains('Save').click()
2525

26-
cy.get('.modal-container').should('not.exist')
26+
cy.get('.modal-container:visible').should('not.exist')
2727
cy.get('.custom-table table').contains('My first task').should('exist')
2828
})
2929

@@ -34,7 +34,7 @@ describe('Rows for a table', () => {
3434
cy.get('.modal__content [aria-label="Increase stars"]').click().click()
3535
cy.get('.modal-container button').contains('Save').click()
3636

37-
cy.get('.modal-container').should('not.exist')
37+
cy.get('.modal-container:visible').should('not.exist')
3838
cy.get('.custom-table table').contains('Changed column value').should('exist')
3939
})
4040

@@ -44,7 +44,7 @@ describe('Rows for a table', () => {
4444
cy.get('.modal-container button').contains('Delete').click()
4545
cy.get('.modal-container button').contains('I really want to delete this row!').click()
4646

47-
cy.get('.modal-container').should('not.exist')
47+
cy.get('.modal-container:visible').should('not.exist')
4848
cy.get('.custom-table table').contains('Changed column value').should('not.exist')
4949
})
5050
})

cypress/e2e/tables-table.cy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('Manage a table', () => {
1717
cy.contains('.app-menu-entry--label', 'Tables').click()
1818
cy.contains('button', 'Create new table').click()
1919
cy.get('.tile').contains('ToDo').click({ force: true })
20+
cy.get('.modal__content').should('be.visible')
2021
cy.get('.modal__content input[type="text"]').clear().type('to do list')
2122
cy.contains('button', 'Create table').click()
2223

@@ -30,7 +31,8 @@ describe('Manage a table', () => {
3031
cy.get('[data-cy="customTableAction"] button').click()
3132
cy.get('.action-button__text').contains('Edit table').click()
3233

33-
cy.get('.modal-container input').clear().type('ToDo list')
34+
cy.get('.modal__content').should('be.visible')
35+
cy.get('.modal-container input').last().clear().type('ToDo list')
3436
cy.get('.modal-container button').contains('Save').click()
3537

3638
cy.wait(10).get('.toastify.toast-success').should('be.visible')
@@ -42,6 +44,7 @@ describe('Manage a table', () => {
4244
cy.get('[data-cy="customTableAction"] button').click()
4345
cy.get('.action-button__text').contains('Edit table').click()
4446

47+
cy.get('.modal__content').should('be.visible')
4548
cy.get('.modal-container button').contains('Delete').click()
4649
cy.get('.modal-container button').contains('I really want to delete this table!').click()
4750

cypress/support/commands.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ Cypress.Commands.add('createTextLinkColumn', (title, ressourceProvider, firstCol
9898
// deactivate unwanted provider
9999
cy.get('.typeSelection span label').contains('Url', { matchCase: false }).click()
100100
cy.get('.typeSelection span label').contains('Files').click()
101-
cy.get('.typeSelection span label').contains('Contacts').click()
101+
// TODO is the contacts search provider deactivated by default beginning with nc28
102+
// cy.get('.typeSelection span label').contains('Contacts').click()
102103

103104
ressourceProvider.forEach(provider =>
104105
cy.get('.typeSelection span label').contains(provider, { matchCase: false }).click(),

0 commit comments

Comments
 (0)