2020-07-22 12:25:54 +02:00
|
|
|
describe('Annotations', () => {
|
|
|
|
beforeEach(() => {
|
2021-06-09 16:58:34 +02:00
|
|
|
cy.clickNavMenu('annotations')
|
2020-07-22 12:25:54 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Annotations loaded', () => {
|
|
|
|
cy.get('h1').should('contain', 'Annotations')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Create annotation', () => {
|
2023-05-31 16:39:42 +02:00
|
|
|
cy.get('.page-buttons [data-attr=create-annotation]').click()
|
2020-07-22 12:25:54 +02:00
|
|
|
cy.get('[data-attr=create-annotation-input]').type('Test Annotation')
|
|
|
|
cy.get('[data-attr=create-annotation-submit]').click()
|
2021-06-04 15:24:12 +02:00
|
|
|
cy.get('[data-attr=annotations-table]').contains('Test Annotation').should('exist')
|
2020-07-22 12:25:54 +02:00
|
|
|
})
|
|
|
|
})
|