Skip to content

Commit e8bc6f1

Browse files
move playwright tests from reat_on_rails_pro to spec/dummy directory
1 parent a3727f8 commit e8bc6f1

File tree

8 files changed

+50
-50
lines changed

8 files changed

+50
-50
lines changed

react_on_rails_pro/.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,3 @@ yalc.lock
7575

7676
# React on Rails Pro License Key
7777
config/react_on_rails_pro_license.key
78-
79-
# Playwright
80-
/test-results/
81-
/playwright-report/
82-
/blob-report/
83-
/playwright/.cache/
84-
/playwright/.auth/

react_on_rails_pro/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@
5656
"@babel/preset-typescript": "^7.27.0",
5757
"@eslint/compat": "^1.2.8",
5858
"@honeybadger-io/js": "^6.10.1",
59-
"@playwright/test": "^1.56.1",
6059
"@sentry/node": "^7.120.0",
6160
"@tsconfig/node14": "^14.1.2",
6261
"@types/fs-extra": "^11.0.4",
6362
"@types/jest": "^29.5.12",
6463
"@types/jsonwebtoken": "^9.0.10",
6564
"@types/lockfile": "^1.0.4",
66-
"@types/node": "^24.8.1",
6765
"@types/touch": "^3.1.5",
6866
"babel-jest": "^29.7.0",
6967
"concurrently": "^9.1.0",
@@ -90,7 +88,7 @@
9088
"pino-pretty": "^13.0.0",
9189
"prettier": "^3.2.5",
9290
"react-on-rails": "link:.yalc/react-on-rails",
93-
"redis": "^5.8.3",
91+
"redis": "^5.0.1",
9492
"release-it": "^17.6.0",
9593
"sentry-testkit": "^5.0.6",
9694
"touch": "^3.1.0",
@@ -122,7 +120,6 @@
122120
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",
123121
"link-source": "cd ../packages/react-on-rails && yarn && yalc publish",
124122
"test": "nps test",
125-
"e2e-test": "playwright test",
126123
"prepack": "nps build.prepack",
127124
"prepare": "nps build.prepack",
128125
"prepublishOnly": "nps build",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# React on Rails Pro license file
22
config/react_on_rails_pro_license.key
3+
4+
# Playwright
5+
/test-results/
6+
/playwright-report/
7+
/blob-report/
8+
/playwright/.cache/
9+
/playwright/.auth/

react_on_rails_pro/spec/dummy/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@
7777
},
7878
"devDependencies": {
7979
"@babel/preset-typescript": "^7.23.2",
80+
"@playwright/test": "^1.56.1",
8081
"@pmmmwh/react-refresh-webpack-plugin": "0.5.3",
8182
"@tailwindcss/aspect-ratio": "^0.4.2",
8283
"@tailwindcss/forms": "^0.5.3",
8384
"@tailwindcss/typography": "^0.5.9",
8485
"@tsconfig/create-react-app": "^2.0.1",
86+
"@types/node": "^24.8.1",
8587
"@types/react-dom": "^18.2.14",
8688
"jsdom": "^16.4.0",
8789
"pino-pretty": "^13.0.0",
@@ -95,6 +97,7 @@
9597
"scripts": {
9698
"test": "yarn run build:test && yarn run lint && rspec",
9799
"lint": "cd ../.. && nps lint",
100+
"e2e-test": "playwright test",
98101
"preinstall": "yarn run link-source && yalc add --link react-on-rails-pro && cd .yalc/react-on-rails-pro && yalc add --link react-on-rails && cd ../.. && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
99102
"link-source": "cd ../../.. && yarn && yarn run yalc:publish && cd react_on_rails_pro && yarn && yalc publish",
100103
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",

react_on_rails_pro/spec/dummy/yarn.lock

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,13 @@
11241124
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
11251125
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
11261126

1127+
"@playwright/test@^1.56.1":
1128+
version "1.56.1"
1129+
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.56.1.tgz#6e3bf3d0c90c5cf94bf64bdb56fd15a805c8bd3f"
1130+
integrity sha512-vSMYtL/zOcFpvJCW71Q/OEGQb7KYBPAdKh35WNSkaZA75JlAO8ED8UN6GUNTm3drWomcbcqRPFqQbLae8yBTdg==
1131+
dependencies:
1132+
playwright "1.56.1"
1133+
11271134
11281135
version "0.5.3"
11291136
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.3.tgz#b8f0e035f6df71b5c4126cb98de29f65188b9e7b"
@@ -1387,6 +1394,13 @@
13871394
dependencies:
13881395
undici-types "~5.26.4"
13891396

1397+
"@types/node@^24.8.1":
1398+
version "24.8.1"
1399+
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.8.1.tgz#74c8ae00b045a0a351f2837ec00f25dfed0053be"
1400+
integrity sha512-alv65KGRadQVfVcG69MuB4IzdYVpRwMG/mq8KWOaoOdyY617P5ivaDiMCGOFDWD2sAn5Q0mR3mRtUOgm99hL9Q==
1401+
dependencies:
1402+
undici-types "~7.14.0"
1403+
13901404
"@types/parse-json@^4.0.0":
13911405
version "4.0.2"
13921406
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239"
@@ -3409,6 +3423,11 @@ fs.realpath@^1.0.0:
34093423
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
34103424
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
34113425

3426+
3427+
version "2.3.2"
3428+
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
3429+
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
3430+
34123431
fsevents@~2.3.2:
34133432
version "2.3.3"
34143433
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
@@ -4941,6 +4960,20 @@ pkg-up@^3.1.0:
49414960
dependencies:
49424961
find-up "^3.0.0"
49434962

4963+
4964+
version "1.56.1"
4965+
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.1.tgz#24a66481e5cd33a045632230aa2c4f0cb6b1db3d"
4966+
integrity sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==
4967+
4968+
4969+
version "1.56.1"
4970+
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.1.tgz#62e3b99ddebed0d475e5936a152c88e68be55fbf"
4971+
integrity sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==
4972+
dependencies:
4973+
playwright-core "1.56.1"
4974+
optionalDependencies:
4975+
fsevents "2.3.2"
4976+
49444977
postcss-calc@^8.2.3:
49454978
version "8.2.4"
49464979
resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-8.2.4.tgz#77b9c29bfcbe8a07ff6693dc87050828889739a5"
@@ -6513,6 +6546,11 @@ undici-types@~5.26.4:
65136546
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
65146547
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
65156548

6549+
undici-types@~7.14.0:
6550+
version "7.14.0"
6551+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.14.0.tgz#4c037b32ca4d7d62fae042174604341588bc0840"
6552+
integrity sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==
6553+
65166554
unicode-canonical-property-names-ecmascript@^2.0.0:
65176555
version "2.0.0"
65186556
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"

react_on_rails_pro/yarn.lock

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,13 +1576,6 @@
15761576
resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.1.tgz#6d083acfddae21fb329c8df8c94bf895ce7d0c15"
15771577
integrity sha512-VzgHzGblFmUeBmmrk55zPyrQIArQN4vujc9shWytaPdB3P7qhi0cpaiKIr7tlCmFv2lYUwnLospIqjL9ZSAhhg==
15781578

1579-
"@playwright/test@^1.56.1":
1580-
version "1.56.1"
1581-
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.56.1.tgz#6e3bf3d0c90c5cf94bf64bdb56fd15a805c8bd3f"
1582-
integrity sha512-vSMYtL/zOcFpvJCW71Q/OEGQb7KYBPAdKh35WNSkaZA75JlAO8ED8UN6GUNTm3drWomcbcqRPFqQbLae8yBTdg==
1583-
dependencies:
1584-
playwright "1.56.1"
1585-
15861579
"@pnpm/config.env-replace@^1.1.0":
15871580
version "1.1.0"
15881581
resolved "https://registry.yarnpkg.com/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz#ab29da53df41e8948a00f2433f085f54de8b3a4c"
@@ -1904,13 +1897,6 @@
19041897
dependencies:
19051898
undici-types "~5.26.4"
19061899

1907-
"@types/node@^24.8.1":
1908-
version "24.8.1"
1909-
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.8.1.tgz#74c8ae00b045a0a351f2837ec00f25dfed0053be"
1910-
integrity sha512-alv65KGRadQVfVcG69MuB4IzdYVpRwMG/mq8KWOaoOdyY617P5ivaDiMCGOFDWD2sAn5Q0mR3mRtUOgm99hL9Q==
1911-
dependencies:
1912-
undici-types "~7.14.0"
1913-
19141900
"@types/parse-json@^4.0.0":
19151901
version "4.0.2"
19161902
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239"
@@ -4248,11 +4234,6 @@ fs.realpath@^1.0.0:
42484234
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
42494235
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
42504236

4251-
4252-
version "2.3.2"
4253-
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
4254-
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
4255-
42564237
fsevents@^2.3.2, fsevents@~2.3.2:
42574238
version "2.3.3"
42584239
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
@@ -6732,20 +6713,6 @@ pkg-dir@^5.0.0:
67326713
dependencies:
67336714
find-up "^5.0.0"
67346715

6735-
6736-
version "1.56.1"
6737-
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.1.tgz#24a66481e5cd33a045632230aa2c4f0cb6b1db3d"
6738-
integrity sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ==
6739-
6740-
6741-
version "1.56.1"
6742-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.1.tgz#62e3b99ddebed0d475e5936a152c88e68be55fbf"
6743-
integrity sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw==
6744-
dependencies:
6745-
playwright-core "1.56.1"
6746-
optionalDependencies:
6747-
fsevents "2.3.2"
6748-
67496716
please-upgrade-node@^3.2.0:
67506717
version "3.2.0"
67516718
resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942"
@@ -7020,7 +6987,7 @@ rechoir@^0.6.2:
70206987
dependencies:
70216988
resolve "^1.1.6"
70226989

7023-
redis@^5.8.3:
6990+
redis@^5.0.1:
70246991
version "5.8.3"
70256992
resolved "https://registry.yarnpkg.com/redis/-/redis-5.8.3.tgz#c65d52ff9099579e278bf8ce100efbadafe5580a"
70266993
integrity sha512-MfSrfV6+tEfTw8c4W0yFp6XWX8Il4laGU7Bx4kvW4uiYM1AuZ3KGqEGt1LdQHeD1nEyLpIWetZ/SpY3kkbgrYw==
@@ -8130,11 +8097,6 @@ undici-types@~5.26.4:
81308097
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
81318098
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
81328099

8133-
undici-types@~7.14.0:
8134-
version "7.14.0"
8135-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.14.0.tgz#4c037b32ca4d7d62fae042174604341588bc0840"
8136-
integrity sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==
8137-
81388100
unicode-canonical-property-names-ecmascript@^2.0.0:
81398101
version "2.0.0"
81408102
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"

0 commit comments

Comments
 (0)