19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
import {expect} from 'chai';
|
|
|
|
import {withWeb} from '@flecks/headless/test/helpers/with-web';
|
|
|
|
it('allows custom routes', withWeb(
|
|
async ({page, response}) => {
|
|
expect(response)
|
|
.to.not.be.null;
|
|
expect(response.ok())
|
|
.to.be.true;
|
|
const output = await page.waitForSelector('.custom-route');
|
|
expect(output)
|
|
.to.not.be.undefined;
|
|
},
|
|
{
|
|
template: 'templates/router-custom',
|
|
},
|
|
));
|