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')
|
2023-06-12 14:44:05 +02:00
|
|
|
cy.get('h2').should('contain', 'Create your first annotation')
|
|
|
|
cy.get('[data-attr="product-introduction-docs-link"]').should('contain', 'Learn more about Annotations')
|
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
|
|
|
})
|
|
|
|
})
|