mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
41 lines
799 B
TypeScript
41 lines
799 B
TypeScript
describe('History', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/history')
|
|
})
|
|
|
|
describe('History Mode', () => {
|
|
it('Cards', () => {
|
|
cy.get('div.card')
|
|
.should('be.visible')
|
|
})
|
|
|
|
it('Table', () => {
|
|
cy.get('i.fa-table')
|
|
.click()
|
|
cy.get('table.history-table')
|
|
.should('be.visible')
|
|
})
|
|
})
|
|
|
|
describe('Pinning', () => {
|
|
it('Cards', () => {
|
|
cy.get('div.card')
|
|
.should('be.visible')
|
|
cy.get('.fa-thumb-tack')
|
|
.first()
|
|
.click()
|
|
cy.get('.modal-dialog')
|
|
.should('be.visible')
|
|
})
|
|
|
|
it('Table', () => {
|
|
cy.get('i.fa-table')
|
|
.click()
|
|
cy.get('.fa-thumb-tack')
|
|
.first()
|
|
.click()
|
|
cy.get('.modal-dialog')
|
|
.should('be.visible')
|
|
})
|
|
})
|
|
})
|