2020-07-16 05:22:53 -04:00
|
|
|
describe('History', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/history')
|
|
|
|
})
|
|
|
|
|
|
|
|
describe('History Mode', () => {
|
|
|
|
it('Cards', () => {
|
|
|
|
cy.get('div.card')
|
2020-08-16 15:54:04 -04:00
|
|
|
.should('be.visible')
|
2020-07-16 05:22:53 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Table', () => {
|
|
|
|
cy.get('i.fa-table')
|
|
|
|
.click()
|
|
|
|
cy.get('table.history-table')
|
2020-08-16 15:54:04 -04:00
|
|
|
.should('be.visible')
|
2020-07-16 05:22:53 -04:00
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
describe('Pinning', () => {
|
|
|
|
it('Cards', () => {
|
2020-08-16 15:54:04 -04:00
|
|
|
cy.get('div.card')
|
|
|
|
.should('be.visible')
|
2020-07-16 05:22:53 -04:00
|
|
|
cy.get('.fa-thumb-tack')
|
|
|
|
.first()
|
|
|
|
.click()
|
|
|
|
cy.get('.modal-dialog')
|
|
|
|
.should('be.visible')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Table', () => {
|
2020-08-16 15:54:04 -04:00
|
|
|
cy.get('i.fa-table')
|
|
|
|
.click()
|
2020-07-16 05:22:53 -04:00
|
|
|
cy.get('.fa-thumb-tack')
|
|
|
|
.first()
|
|
|
|
.click()
|
|
|
|
cy.get('.modal-dialog')
|
|
|
|
.should('be.visible')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|