Files
gerrit/polygerrit-ui/app/test/functional/test.js
Viktar Donich 7cbe1e493e Functional test suite starter
Contains test runner Docker file and a sample smoke test. Smoke test
build PolyGerrit app, serves it locally and expects page title to be
updated to the default value.

Change-Id: I8ab2ca8a97830eefa1c697c2e51be82cbc1657c7
2018-02-13 20:12:30 -08:00

26 lines
509 B
JavaScript

/**
* @fileoverview Minimal viable frontend functional test.
*/
'use strict';
const {until} = require('selenium-webdriver');
const {setup, cleanup} = require('test-infra');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
describe('example ', () => {
let driver;
beforeAll(() => {
return setup().then(d => driver = d);
});
afterAll(() => {
return cleanup();
});
it('should update title', () => {
return driver.wait(until.titleIs('status:open · Gerrit Code Review'), 5000);
});
});