test(ct): react17 coverage (#22297)
|
|
@ -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": {
|
||||
|
|
@ -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({
|
||||
|
|
@ -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';
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -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';
|
||||
|
||||
|
|
@ -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';
|
||||
|
|
@ -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';
|
||||
|
||||
|
|
@ -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';
|
||||
|
|
@ -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';
|
||||
|
||||
|
|
@ -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 }) => {
|
||||