Debian Codegraph @

web/cypress/e2e/basic.cy.js

raw symbols SCIP
1 describe('check index renders', () => {
2 beforeEach(() => {
3 cy.visit('/')
4 })
5
6 it('displays the title text', () => {
7 cy.get('[data-cy="top-link"]').contains(/^Conky$/)
8 })
9 })
10 describe('check config settings', () => {
11 beforeEach(() => {
12 cy.visit('/config_settings')
13 })
14
15 it('displays the title text', () => {
16 cy.get('[data-cy="top-link"]').contains(/^Conky$/)
17 cy.get('[data-cy="page-heading"]').contains(/^Configuration settings$/)
18 })
19 })
20 describe('check variables', () => {
21 beforeEach(() => {
22 cy.visit('/variables')
23 })
24
25 it('displays the title text', () => {
26 cy.get('[data-cy="top-link"]').contains(/^Conky$/)
27 cy.get('[data-cy="page-heading"]').contains(/^Variables$/)
28 })
29 it('has anchor links and can focus on them', () => {
30 cy.get('[data-anchor-name="acpiacadapter"]').click()
31 cy.get('[data-anchor-name="acpiacadapter"]').and('be.visible')
32 })
33 })
34 describe('check lua', () => {
35 beforeEach(() => {
36 cy.visit('/lua')
37 })
38
39 it('displays the title text', () => {
40 cy.get('[data-cy="top-link"]').contains(/^Conky$/)
41 cy.get('[data-cy="page-heading"]').contains(/^Lua API$/)
42 })
43 })