Files
OliveTin/integration-tests/test/hiddenNav.mjs
James Read 2ada67be04 Migrate integration-test infrastucture from Cypress to Selenium+Mocha (#170)
* cicd: Move cypress to selenium+mocha

* cicd: with is not supported unless using an a container

* cicd: relative path to mocha

* cicd: the integration-tests runner now starts/stops OliveTin

* cicd: Knowing the CWD helps debugging

* cicd: Headless chrome

* cicd: wait for integration-test server to be started

* fmt: Mostly fix isses from eslint

* cicd: #169 - Test multiple combo boxes

* fmt: let should be const

* cicd: Remove cypress entirely
2023-10-09 21:44:29 +00:00

21 lines
464 B
JavaScript

import {expect} from 'chai';
import {By} from 'selenium-webdriver';
describe('config: hiddenNav', function () {
before(async function () {
await runner.start('hiddenNav')
})
after(async () => {
await runner.stop()
})
it('nav is hidden', async () => {
await webdriver.get('http://localhost:1337')
const toggler = await webdriver.findElement(By.id('sidebar-toggle-wrapper'))
expect(await toggler.isDisplayed()).to.be.false
})
})