Skip to content

Commit 9d7f4ba

Browse files
committed
refactor e2e puppeteer -> cypress
1 parent c0d4477 commit 9d7f4ba

File tree

8 files changed

+1172
-42
lines changed

8 files changed

+1172
-42
lines changed

cypress-javascript.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"baseUrl": "http://localhost:3000",
3+
"integrationFolder": "e2e/javascript",
4+
"pluginsFile": false,
5+
"supportFile": false,
6+
"video": false
7+
}

cypress-typescript.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"baseUrl": "http://localhost:3000",
3+
"integrationFolder": "e2e/typescript",
4+
"pluginsFile": false,
5+
"supportFile": false,
6+
"video": false
7+
}

e2e/javascript/index.test.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import 'expect-puppeteer';
2-
31
describe('Vue 3 Playground', () => {
4-
beforeAll(async () => {
5-
await page.goto('http://localhost:3000')
6-
});
7-
8-
it('should display playground text on page', async () => {
9-
await expect(page).toMatch('Vue 3.0.5 Playground');
2+
it('should display playground text on page', () => {
3+
cy.visit('/');
4+
cy.contains('h2', 'Vue 3.0.5 Playground');
105
});
116
});

e2e/typescript/index.test.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import 'expect-puppeteer';
2-
31
describe('Vue 3 Playground', () => {
4-
beforeAll(async () => {
5-
await page.goto('http://localhost:3000')
6-
});
7-
8-
it('should display playground text on page', async () => {
9-
await expect(page).toMatch('Vue 3.0.5 Playground');
2+
it('should display playground text on page', () => {
3+
cy.visit('/');
4+
cy.contains('h2', 'Vue 3.0.5 Playground');
105
});
116
});

jest.e2e.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)