You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
652 B
23 lines
652 B
import test from 'ava';
|
|
import {login, register_user, sleep, form, random_user, expect, wait, tid, playstart, playstop} from '../../lib/testing.js';
|
|
import {knex} from '../../lib/ormish.js';
|
|
|
|
test.before(async t => t.context = await playstart('http://127.0.0.1:5001/client/#/'));
|
|
|
|
test.after(async t => {
|
|
await playstop(t.context.browser, t.context.p);
|
|
});
|
|
|
|
test('test <%= start_url %> works', async (t) => {
|
|
const {browser, context, p} = t.context;
|
|
const user = await register_user();
|
|
|
|
try {
|
|
// confirm we get errors
|
|
await expect(t, p, tid("home-page"));
|
|
|
|
} catch (error) {
|
|
console.log(error);
|
|
t.fail(error.message);
|
|
}
|
|
});
|
|
|