This is the template project that's checked out and configured when you run the bando-up command from ljsthw-bandolier. This is where the code really lives.
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.
 
 
 
 
bandolier-template/static/djenterator/ui_test.js

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);
}
});