mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
aacf2289de
* Improve the web tests * That's not portable * Use regex here * Set concurrency on web CI
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
describe('check index renders', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/')
|
|
})
|
|
|
|
it('displays the title text', () => {
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
})
|
|
})
|
|
describe('check config settings', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/config_settings')
|
|
})
|
|
|
|
it('displays the title text', () => {
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
cy.get('[data-cy="page-heading"]').contains(/^Configuration settings$/)
|
|
})
|
|
})
|
|
describe('check variables', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/variables')
|
|
})
|
|
|
|
it('displays the title text', () => {
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
cy.get('[data-cy="page-heading"]').contains(/^Variables$/)
|
|
})
|
|
it('has anchor links and can focus on them', () => {
|
|
cy.get('[data-anchor-name="cpu"]').click().and('be.visible')
|
|
})
|
|
})
|
|
describe('check lua', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/lua')
|
|
})
|
|
|
|
it('displays the title text', () => {
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
cy.get('[data-cy="page-heading"]').contains(/^Lua API$/)
|
|
})
|
|
})
|