flecks/packages/react/test/router-custom.js

19 lines
422 B
JavaScript
Raw Normal View History

2024-02-17 07:12:18 -06:00
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',
},
));