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

fix get status

parent 6e273469
Branches 24-badpathinpostinstall
No related tags found
No related merge requests found
describe('Open example', () => { describe('Open example', () => {
beforeAll(async () => { beforeAll(async () => {
await page.goto('https://example.org'); await page.goto('https://example.org');
expect(page.status()).toBe(200); expect(response.status()).toBe(200);
}); });
it('has the correct page title', async () => { it('has the correct page title', async () => {
const title = await page.title(); const title = await page.title();
...@@ -16,7 +16,7 @@ describe('Open example', () => { ...@@ -16,7 +16,7 @@ describe('Open example', () => {
describe('Open local HTTP server', () => { describe('Open local HTTP server', () => {
beforeAll(async () => { beforeAll(async () => {
await page.goto('http://127.0.0.1:4488'); await page.goto('http://127.0.0.1:4488');
expect(page.status()).toBe(200); expect(response.status()).toBe(200);
}); });
it('has the correct page title', async () => { it('has the correct page title', async () => {
const title = await page.title(); const title = await page.title();
...@@ -31,7 +31,7 @@ describe('Open local HTTP server', () => { ...@@ -31,7 +31,7 @@ describe('Open local HTTP server', () => {
describe('Open example', () => { describe('Open example', () => {
beforeAll(async () => { beforeAll(async () => {
await page.goto('https://example.org'); await page.goto('https://example.org');
expect(page.status()).toBe(200); expect(response.status()).toBe(200);
}); });
it('has the correct page title', async () => { it('has the correct page title', async () => {
const title = await page.title(); const title = await page.title();
...@@ -46,7 +46,7 @@ describe('Open example', () => { ...@@ -46,7 +46,7 @@ describe('Open example', () => {
describe('Open local HTTP server', () => { describe('Open local HTTP server', () => {
beforeAll(async () => { beforeAll(async () => {
await page.goto('http://127.0.0.1:4488'); await page.goto('http://127.0.0.1:4488');
expect(page.status()).toBe(200); expect(response.status()).toBe(200);
}); });
it('has the correct page title', async () => { it('has the correct page title', async () => {
const title = await page.title(); const title = await page.title();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment