mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-14 01:55:39 +00:00
* 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
36 lines
911 B
JavaScript
36 lines
911 B
JavaScript
import {expect} from 'chai';
|
|
import {By} from 'selenium-webdriver';
|
|
|
|
describe('config: general', function () {
|
|
before(async function () {
|
|
await runner.start('general')
|
|
});
|
|
|
|
after(async () => {
|
|
await runner.stop()
|
|
});
|
|
|
|
it('Page title', async function () {
|
|
await webdriver.get('http://localhost:1337')
|
|
|
|
let title = await webdriver.getTitle();
|
|
expect(title).to.be.equal("OliveTin")
|
|
})
|
|
|
|
it('Footer contains promo', async function () {
|
|
let ftr = await webdriver.findElement(By.tagName('footer')).getText()
|
|
|
|
expect(ftr).to.contain("Documentation")
|
|
})
|
|
|
|
it('Default buttons are rendered', async function() {
|
|
await webdriver.get('http://localhost:1337')
|
|
|
|
// await webdriver.manage().setTimeouts({ implicit: 2000 });
|
|
|
|
let buttons = await webdriver.findElement(By.id('root-group')).findElements(By.tagName('button'))
|
|
|
|
expect(buttons).to.have.length(6);
|
|
})
|
|
})
|