Select Git revision
setup-expect-timeout.js
-
Loïs Poujade authored
- use Manifesto Utils.parseManifest to feed data to component - add integrations tests for captions - remove component captions tests (cf #13) - extend expect-puppeteer timeout to 2s
Loïs Poujade authored- use Manifesto Utils.parseManifest to feed data to component - add integrations tests for captions - remove component captions tests (cf #13) - extend expect-puppeteer timeout to 2s
main.js 753 B
describe('Open example', () => {
beforeAll(async () => {
await page.goto('https://example.org');
});
it('has the correct page title', async () => {
const title = await page.title();
expect(title).toBe('Example Domain');
});
it('has the main text', async () => {
await expect(page).toMatchElement('a[href="https://www.iana.org/domains/example"]');
});
});
describe('Open local HTTP server', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:4488');
});
it('has the correct page title', async () => {
const title = await page.title();
expect(title).toBe('Index of /');
});
it('has the correct link', async () => {
await expect(page).toMatchElement('a[href="./jest.json"]');
});
});