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