Skip to content

Commit

Permalink
Fjerner test for slett notat. Ikke støttet lenger
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Feb 24, 2025
1 parent 3ef58ec commit bd4adf1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions client/cypress/e2e/5_notater.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Håndtering av notater på brillesaker', () => {
clearIndexDb()
})

it('Legge til og slette notater på åpen sak', () => {
it('Legge til notater på åpen sak', () => {
const saksnummer = '1010'
cy.visit(`/sak/${saksnummer}`)

Expand All @@ -20,19 +20,6 @@ describe('Håndtering av notater på brillesaker', () => {

cy.findByRole('list', { name: /notater/i }).within(() => {
cy.findAllByRole('listitem').should('have.length', 1).should('include.text', 'Tekst i notatet')
cy.findByRole('button', { name: /slett notat/i }).click()
})

cy.findByRole('dialog', {
name: /er du sikker/i,
})
.should('be.visible')
.within(() => {
cy.findByRole('button', {
name: /slett/i,
}).click()
})

cy.findByRole('list', { name: /notater/i }).should('not.exist')
})
})

0 comments on commit bd4adf1

Please sign in to comment.