2020-07-22 12:25:54 +02:00
|
|
|
describe('Annotations', () => {
|
|
|
|
beforeEach(() => {
|
2023-11-08 16:16:05 +01:00
|
|
|
cy.clickNavMenu('datamanagement')
|
|
|
|
cy.get('[data-attr=data-management-annotations-tab]').click()
|
2020-07-22 12:25:54 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Annotations loaded', () => {
|
2023-06-12 14:44:05 +02:00
|
|
|
cy.get('h2').should('contain', 'Create your first annotation')
|
2023-12-07 17:56:39 +01:00
|
|
|
cy.get('[data-attr="product-introduction-docs-link"]').should('contain', 'Learn more')
|
2020-07-22 12:25:54 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
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')
|
2023-06-12 14:44:05 +02:00
|
|
|
cy.get('h2').should('not.have.text', 'Create your first annotation')
|
2020-07-22 12:25:54 +02:00
|
|
|
})
|
|
|
|
})
|