2020-05-22 18:34:48 +02:00
|
|
|
describe('Events', () => {
|
|
|
|
beforeEach(() => {
|
2020-06-17 11:46:22 +02:00
|
|
|
cy.visit('/events')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Events loaded', () => {
|
2020-08-22 18:03:12 +02:00
|
|
|
cy.get('[data-attr=events-table]').should('exist')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Click on an event', () => {
|
2020-06-01 18:37:36 +02:00
|
|
|
cy.get('[data-attr=events-table] .event-row:first-child td:first-child').click()
|
2020-08-22 18:03:12 +02:00
|
|
|
cy.get('[data-attr=event-details]').should('exist')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Apply 1 overall filter', () => {
|
|
|
|
cy.get('[data-attr=new-prop-filter-EventsTable]').click()
|
2020-09-18 15:26:12 +02:00
|
|
|
cy.get('[data-attr=property-filter-dropdown]').click()
|
2020-10-23 15:52:59 +02:00
|
|
|
cy.get('[data-attr=prop-filter-event-0]').click({ force: true })
|
2020-05-22 18:34:48 +02:00
|
|
|
cy.get('[data-attr=prop-val]').click()
|
2020-10-23 15:52:59 +02:00
|
|
|
cy.get('[data-attr=prop-val-0]').click({ force: true })
|
2020-08-22 18:03:12 +02:00
|
|
|
cy.get('[data-attr=events-table]').should('exist')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
})
|