| 12345678910111213141516171819202122232425262728293031 |
- import { describe, it, before, after } from 'mocha'
- import { expect } from 'chai'
- import { By } from 'selenium-webdriver'
- import {
- getRootAndWait,
- getActionButtons,
- takeScreenshotOnFailure,
- } from '../../lib/elements.js'
- describe('config: hiddenFooter', function () {
- before(async function () {
- await runner.start('hiddenFooter')
- })
- after(async () => {
- await runner.stop()
- })
- afterEach(function () {
- takeScreenshotOnFailure(this.currentTest, webdriver);
- });
- it('Check that footer is hidden', async () => {
- await webdriver.get(runner.baseUrl())
- // Pass when footer element is not found, fail if it exists
- const footers = await webdriver.findElements(By.tagName('footer'))
- expect(footers.length).to.equal(0)
- })
- })
|