File: basic.cy.js

package info (click to toggle)
conky 1.22.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,940 kB
  • sloc: cpp: 63,722; ansic: 18,079; python: 813; xml: 324; sh: 243; makefile: 142; javascript: 139
file content (43 lines) | stat: -rw-r--r-- 1,151 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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="acpiacadapter"]').click()
    cy.get('[data-anchor-name="acpiacadapter"]').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$/)
  })
})