Skip to content
Snippets Groups Projects
Verified Commit aca18d09 authored by Loïs Poujade's avatar Loïs Poujade
Browse files

test again local HTTP server

parent a0d5f5dc
No related branches found
No related tags found
No related merge requests found
Pipeline #1180 passed
...@@ -10,3 +10,16 @@ describe('Open example', () => { ...@@ -10,3 +10,16 @@ describe('Open example', () => {
await expect(page).toMatchElement('a[href="https://www.iana.org/domains/example"]'); 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"]');
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment