Skip to content

Commit

Permalink
fix(test): modify columm-text-link test
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
  • Loading branch information
enjeck authored and juliusknorr committed Aug 22, 2024
1 parent 6e43669 commit f5eb414
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions cypress/e2e/column-text-link.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ 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('.modal__content .slot input').first().type('https://nextcloud.com')

cy.intercept({ method: 'GET', url: '**/search/providers/files/*' }).as('filesResults')
cy.get('.modal__content .slot input').eq(1).type('pdf').tick(500)
Expand All @@ -58,8 +57,7 @@ describe('Test column text-link', () => {
cy.loadTable('Test 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('[data-cy*="github"]').click()
cy.get('.modal__content .slot input').first().clear().type('https://github.com')

cy.get('.modal__content .slot input').eq(1).type('photo-test').tick(500)
cy.get('[data-cy*="photo-test"]').first().click()
Expand Down
4 changes: 3 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ Cypress.Commands.add('createTextLinkColumn', (title, ressourceProvider, isFirstC
cy.get('.typeSelection span').contains('Url', { matchCase: false }).click()
cy.get('.typeSelection span').contains('Files').click()
// TODO is the contacts search provider deactivated by default beginning with nc28
// cy.get('.typeSelection span label').contains('Contacts').click()
if (['stable27'].includes(Cypress.env('ncVersion'))) {
cy.get('.typeSelection span').contains('Contacts').click()
}

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

0 comments on commit f5eb414

Please sign in to comment.