enhanced the e2e history.spec

This commit is contained in:
Philip Molares 2020-08-16 21:54:04 +02:00 committed by Philip Molares
parent 0fadc09f2b
commit 5a56784cd0

View file

@ -6,17 +6,21 @@ describe('History', () => {
describe('History Mode', () => { describe('History Mode', () => {
it('Cards', () => { it('Cards', () => {
cy.get('div.card') cy.get('div.card')
.should('be.visible')
}) })
it('Table', () => { it('Table', () => {
cy.get('i.fa-table') cy.get('i.fa-table')
.click() .click()
cy.get('table.history-table') cy.get('table.history-table')
.should('be.visible')
}) })
}) })
describe('Pinning', () => { describe('Pinning', () => {
it('Cards', () => { it('Cards', () => {
cy.get('div.card')
.should('be.visible')
cy.get('.fa-thumb-tack') cy.get('.fa-thumb-tack')
.first() .first()
.click() .click()
@ -25,6 +29,8 @@ describe('History', () => {
}) })
it('Table', () => { it('Table', () => {
cy.get('i.fa-table')
.click()
cy.get('.fa-thumb-tack') cy.get('.fa-thumb-tack')
.first() .first()
.click() .click()