2022-09-29 01:59:28 +00:00
|
|
|
describe('check index renders', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('displays the title text', () => {
|
2023-02-26 14:37:41 +00:00
|
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
2022-09-29 01:59:28 +00:00
|
|
|
})
|
|
|
|
})
|
|
|
|
describe('check config settings', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/config_settings')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('displays the title text', () => {
|
2023-02-26 14:37:41 +00:00
|
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
|
|
cy.get('[data-cy="page-heading"]').contains(/^Configuration settings$/)
|
2022-09-29 01:59:28 +00:00
|
|
|
})
|
|
|
|
})
|
|
|
|
describe('check variables', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/variables')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('displays the title text', () => {
|
2023-02-26 14:37:41 +00:00
|
|
|
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')
|
2022-09-29 01:59:28 +00:00
|
|
|
})
|
|
|
|
})
|
|
|
|
describe('check lua', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/lua')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('displays the title text', () => {
|
2023-02-26 14:37:41 +00:00
|
|
|
cy.get('[data-cy="top-link"]').contains(/^Conky$/)
|
|
|
|
cy.get('[data-cy="page-heading"]').contains(/^Lua API$/)
|
2022-09-29 01:59:28 +00:00
|
|
|
})
|
|
|
|
})
|