From 7253d3bdef766c00a10d1d78414b6e7f2218ded2 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Wed, 22 May 2024 13:47:05 +0200 Subject: [PATCH] feat: replace cypress with playwright --- cypress.config.ts | 18 -------- cypress/.gitignore | 2 - .../component/component-health-check.cy.tsx | 13 ------ cypress/e2e/e2e-health-check.cy.ts | 5 --- cypress/fixtures/cypress_logo.png | Bin 17876 -> 0 bytes cypress/fixtures/example.json | 5 --- cypress/support/commands.ts | 39 ----------------- cypress/support/component-index.html | 10 ----- cypress/support/component.ts | 40 ------------------ cypress/support/e2e.ts | 24 ----------- cypress/support/index.d.ts | 9 ---- cypress/tsconfig.json | 17 -------- playwright/app/app.spec.ts | 9 ++-- 13 files changed, 3 insertions(+), 188 deletions(-) delete mode 100644 cypress.config.ts delete mode 100644 cypress/.gitignore delete mode 100644 cypress/component/component-health-check.cy.tsx delete mode 100644 cypress/e2e/e2e-health-check.cy.ts delete mode 100644 cypress/fixtures/cypress_logo.png delete mode 100644 cypress/fixtures/example.json delete mode 100644 cypress/support/commands.ts delete mode 100644 cypress/support/component-index.html delete mode 100644 cypress/support/component.ts delete mode 100644 cypress/support/e2e.ts delete mode 100644 cypress/support/index.d.ts delete mode 100644 cypress/tsconfig.json diff --git a/cypress.config.ts b/cypress.config.ts deleted file mode 100644 index 85f13dc..0000000 --- a/cypress.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig } from 'cypress'; -import * as webpackConfig from 'visyn_scripts/config/webpack.config'; - -export default defineConfig({ - viewportHeight: 1080, - viewportWidth: 1920, - defaultCommandTimeout: 10000, - e2e: { - baseUrl: 'http://localhost:8080', - }, - component: { - devServer: { - framework: 'react', - bundler: 'webpack', - webpackConfig: webpackConfig({ workspace_mode: 'single' }, { mode: 'production' }), - }, - }, -}); diff --git a/cypress/.gitignore b/cypress/.gitignore deleted file mode 100644 index c01f42a..0000000 --- a/cypress/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/videos -/screenshots diff --git a/cypress/component/component-health-check.cy.tsx b/cypress/component/component-health-check.cy.tsx deleted file mode 100644 index d99e63f..0000000 --- a/cypress/component/component-health-check.cy.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import * as React from 'react'; -import { VisynApp, VisynAppProvider } from 'visyn_core/app'; - -describe('Health check for Cypress component test', () => { - it('should mount App', () => { - cy.mount( - - Hello app_template! - , - ); - cy.get('div').should('include.text', 'Hello app_template!'); - }); -}); diff --git a/cypress/e2e/e2e-health-check.cy.ts b/cypress/e2e/e2e-health-check.cy.ts deleted file mode 100644 index 874251b..0000000 --- a/cypress/e2e/e2e-health-check.cy.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe('Health check for Cypress e2e test', () => { - it('Shows the start page', () => { - cy.get('div').should('include.text', 'Hello app_template!'); - }); -}); diff --git a/cypress/fixtures/cypress_logo.png b/cypress/fixtures/cypress_logo.png deleted file mode 100644 index ad8c701b035fa688d7308e3a989f22a4ac2a82b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17876 zcmeIaWmHvB_dbdUf+!^=UD6=Z9ny_RgQRpyH;8mMa!BbsAl(N+5NYY|?v_K}g}>kZ z{=Z|~`@Uc92lg3bpR?CqHRqc1na@MmJ0)p!G$J$v1O#+h8Hx7@2uR-%5D=YF5y73P z9Yt_Oc=}03+X(^T8P3DsBZSoSm*6I$v!s@@s=b-Bn~|d_!dnx2V^a!QTO)JR_ohZB z9u7UGf(QtbMzRub)!b+H=7nt3v|+3^8y4(1vuu(xu2*7_veC}%vht6UKJ$tibJgHb z>o~tbMG7O)JF&i|Ah;Z7?|Au?Bzed zp8vMce|A0pz3soSp8sC?pIy&?Z~H%7)X!4zYAVAr8#_B&Tiah*$2j+kQBhH6ZGP}S ziwg^6N0PL(v`U$Kd2Pzd%H3J2stLy&gnkN&j3x*OsVfhjA>{ox=v9_aDdn?n0#LYs&~(B~@g6Dq=IQB?78q!dTPTk)kw%Wr6Y!bb_v9`2${FDyhOy%gEq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1QNcqEZFwzdd`NK4g$z2k-D*I2a*8$2jNiC9c)M~I* zC5d)9CDO=VLu$f@!8@?Au^k^R-#EJciKSN3V+DIdR@eoKtF*6>o7OtH>$NU6f zaDXFOu|K@?XDF}3$y!+3-MPMxn35e>{eaDOnHZ4J+S}MjV3ds)rlh36FE_J-8-tA~;=MJ= zK_`vX1Ze5S#XS>+Ff|dqyoZ${%*S~KqzC*M@@T3DQ6j2Sx(4?`caiXm?NL{1s$*a! zATr=?s*+qt04goCYt$WJ$2j@ zO-+Nex2eh?QUs-c6EVq04^5H+;ie=lNeJ~`AE$s9?Z`Ji;A#M=_Q$VZQWX~?9Ua3! zY3tTZP*7Ni_irG^+4QIn9r(XLqe6oK=X4Ql4SI|>0$v*c|H%2*Ll#gLJl`2F1wkAC zH{*)1u(03$Ao8!beg5z`3xVYk2>ZaJfTxo}AXzvHvVOO#Glmdgo4}0psjvz>@>aPG zUmmlH8A`OH29^LJJtE~t7IvV(oORGLddc?*s10wnZc_0+|*R42;fu^U15Whg!++^vNACy(!-ZV5)_dp4KOl4n=ug*Dbz?L zUJe{Tg;{o>jeF1(hujVc1JL6-)DHj)N`=%&5A!T0OGO|h5&7vQ!!ZCa95E_Gmk5e0 zPN&1p2n@hK7(k>{V?9|0RGS+J?N_OH3isC`n78e2#lYY4dYojj*?W3=(jjH?`g$8X zI`$&`n=ByKceyYK2Oq%h|I?TMf}H)opk)7lB4_{ij|KkUx%?N_^WQ7~|3!VUU|>-H lUtIoA7xf$Vo!_G;2%>dbT%&|^KR|B~WF?g(%Eb)7{9jmOGV}ld diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 02e4254..0000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts deleted file mode 100644 index 1d16bfc..0000000 --- a/cypress/support/commands.ts +++ /dev/null @@ -1,39 +0,0 @@ -/// -// *********************************************** -// This example commands.ts shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) -// -// declare global { -// namespace Cypress { -// interface Chainable { -// login(email: string, password: string): Chainable -// drag(subject: string, options?: Partial): Chainable -// dismiss(subject: string, options?: Partial): Chainable -// visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable -// } -// } -// } - -Cypress.Commands.add('dataCy', (value: string, options?: { timeout?: number }) => cy.get(`[data-testid*=${value}]`, options)); diff --git a/cypress/support/component-index.html b/cypress/support/component-index.html deleted file mode 100644 index c369b7b..0000000 --- a/cypress/support/component-index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Components App - - -
- - \ No newline at end of file diff --git a/cypress/support/component.ts b/cypress/support/component.ts deleted file mode 100644 index 06f9fa5..0000000 --- a/cypress/support/component.ts +++ /dev/null @@ -1,40 +0,0 @@ -// *********************************************************** -// This example support/component.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands'; - -// Alternatively you can use CommonJS syntax: -// require('./commands') - -import { mount } from 'cypress/react18'; - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - // eslint-disable-next-line @typescript-eslint/no-namespace - namespace Cypress { - interface Chainable { - mount: typeof mount; - } - } -} - -Cypress.Commands.add('mount', mount); - -// Example use: -// cy.mount() diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts deleted file mode 100644 index 83520de..0000000 --- a/cypress/support/e2e.ts +++ /dev/null @@ -1,24 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands'; - -beforeEach(() => { - cy.visit('/'); -}); - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/cypress/support/index.d.ts b/cypress/support/index.d.ts deleted file mode 100644 index 8c9b38b..0000000 --- a/cypress/support/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare namespace Cypress { - interface Chainable { - /** - * Custom command to select DOM element by data-cy attribute. - * @example cy.dataCy('greeting') - */ - dataCy(value: string, options?: { timeout?: number }): Chainable>; - } -} diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json deleted file mode 100644 index 76b6ced..0000000 --- a/cypress/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "visyn_scripts/config/tsconfig.template.json", - "compilerOptions": { - "outDir": "./dist", - "sourceMap": false, - "types": [ - "cypress", - "./support", - ] - }, - "include": [ - "../cypress.config.ts", - "./**/*.ts", - "./**/*.tsx", - "../tsd.d.ts" - ] -} diff --git a/playwright/app/app.spec.ts b/playwright/app/app.spec.ts index 19d05ea..8c177c4 100644 --- a/playwright/app/app.spec.ts +++ b/playwright/app/app.spec.ts @@ -1,12 +1,9 @@ -import { test } from '@playwright/test'; +import { test, expect } from '@playwright/test'; test.describe('App', () => { test('App test 01', async ({ page }) => { await page.goto('/'); - - await page.getByText('Campaign name').fill('Test campaign name'); - await page.getByText('Campaign description').fill('Test campaign description'); - await page.getByText('Create campaign').click(); - await page.getByText('Delete').click(); + + await expect(page.getByText('My first campaign')).toBeVisible(); }); }); \ No newline at end of file