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.
24 lines
652 B
24 lines
652 B
2 years ago
|
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://localhost: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);
|
||
|
}
|
||
|
});
|