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', () => {
|
|
|
|
cy.get('[data-attr=events-table').should('exist')
|
|
|
|
})
|
|
|
|
|
|
|
|
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-05-22 18:34:48 +02:00
|
|
|
cy.get('[data-attr=event-details').should('exist')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('All events route works', () => {
|
|
|
|
cy.get('[data-attr=menu-item-all-events]').click()
|
|
|
|
|
|
|
|
cy.get('[data-attr=events-table').should('exist')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Apply 1 overall filter', () => {
|
|
|
|
cy.get('[data-attr=new-prop-filter-EventsTable]').click()
|
|
|
|
cy.get('[data-attr=prop-filter-event-0]').click()
|
|
|
|
cy.get('[data-attr=prop-val]').click()
|
|
|
|
cy.get('[data-attr=prop-val-0]').click()
|
|
|
|
cy.get('[data-attr=events-table').should('exist')
|
|
|
|
})
|
2020-06-17 11:46:22 +02:00
|
|
|
|
|
|
|
it('Filter by event', () => {
|
|
|
|
cy.get('[data-attr=event-filter-trigger]').click()
|
|
|
|
cy.get('[data-attr=event-name-box]').click()
|
|
|
|
cy.get('[data-attr=prop-val-0]').click()
|
|
|
|
cy.get('[data-attr=events-table').should('exist')
|
|
|
|
})
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|