Skip to content

Commit

Permalink
cypress test adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Jun 28, 2023
1 parent 3f86fcc commit c9b7fef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/column-text-link.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ describe('Test column text-link', () => {
cy.loadTable('Test text-link')
cy.get('.NcTable').contains('Create row').click({ force: true })
cy.get('.modal__content .slot input').first().type('https://nextcloud.com').tick(500)
cy.get('.icon-label-container .labels').contains('https://nextcloud.com').click()
cy.get('.icon-label-container .labels a').contains('https://nextcloud.com').click()

cy.intercept({ method: 'GET', url: '**/search/providers/files/*' }).as('filesResults')
cy.get('.modal__content .slot input').eq(1).type('pdf').tick(500)
cy.wait('@filesResults')
cy.get('.icon-label-container .labels').contains('Nextcloud_Server').click()
cy.get('.icon-label-container .labels a').contains('Nextcloud_Server').click()

cy.get('.modal-container button').contains('Save').click()

Expand All @@ -52,10 +52,10 @@ describe('Test column text-link', () => {
cy.get('.NcTable tr td button').click({ force: true })

cy.get('.modal__content .slot input').first().clear().type('https://github.com').tick(500)
cy.get('.icon-label-container .labels').contains('github').click()
cy.get('.icon-label-container .labels a').contains('github').click()

cy.get('.modal__content .slot input').eq(1).type('photo').tick(500)
cy.get('.icon-label-container .labels').contains('photo').click()
cy.get('.icon-label-container .labels a').contains('photo').click()

cy.get('.modal-container button').contains('Save').click()

Expand Down

0 comments on commit c9b7fef

Please sign in to comment.