test(ct): react17 coverage (#22297)

This commit is contained in:
Sander 2023-04-10 00:11:31 +02:00 committed by GitHub
parent ec2dc92336
commit 2b32d05175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 14 additions and 14 deletions

View file

@ -3,19 +3,19 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^6.6.1"
},
"devDependencies": {
"@types/node": "^16.11.26",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"react-scripts": "5.0.0",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"react-scripts": "5.0.1",
"typescript": "^4.6.2"
},
"@standaloneDevDependencies": {
"@playwright/experimental-ct-react": "^1.2.2",
"@playwright/experimental-ct-react17": "^1.2.2",
"@playwright/test": "^1.22.2"
},
"scripts": {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { defineConfig, devices } from '@playwright/experimental-ct-react';
import { defineConfig, devices } from '@playwright/experimental-ct-react17';
import { resolve } from 'path';
export default defineConfig({

View file

@ -1,4 +1,4 @@
import { beforeMount, afterMount } from '@playwright/experimental-ct-react/hooks';
import { beforeMount, afterMount } from '@playwright/experimental-ct-react17/hooks';
import { BrowserRouter } from 'react-router-dom';
import '../src/assets/index.css';

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View file

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import Button from '@/components/Button';
import DefaultChildren from '@/components/DefaultChildren';

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import Button from '@/components/Button';
import DefaultChildren from '@/components/DefaultChildren';
import MultipleChildren from '@/components/MultipleChildren';

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import App from '@/App';
import type { HooksConfig } from '../playwright';

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import Fetch from '@/components/Fetch';
import DelayedData from '@/components/DelayedData';
import Button from '@/components/Button';

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import Button from '@/components/Button';
import MultiRoot from '@/components/MultiRoot';

View file

@ -1,4 +1,4 @@
import { test, expect } from '@playwright/experimental-ct-react';
import { test, expect } from '@playwright/experimental-ct-react17';
import Counter from '@/components/Counter';
test('update props without remounting', async ({ mount }) => {