Skip to content

Commit

Permalink
Fix tests by updating @playwright/test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Jan 24, 2025
1 parent 715a66c commit 1a014e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/leptos/tests/playwright.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ pub fn playwright() {
.parse::<bool>()
.unwrap_or(false)
{
let status = Command::new("pnpm")
.arg("update")
.arg("@playwright/test")
.current_dir(repository_path.clone())
.status()
.expect("pnpm update failed.");
assert!(status.success(), "pnpm update failed");

let status = Command::new("npx")
.arg("playwright")
.arg("install")
Expand Down
8 changes: 8 additions & 0 deletions packages/yew/tests/playwright.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ pub fn playwright() {
.parse::<bool>()
.unwrap_or(false)
{
let status = Command::new("pnpm")
.arg("update")
.arg("@playwright/test")
.current_dir(repository_path.clone())
.status()
.expect("pnpm update failed.");
assert!(status.success(), "pnpm update failed");

let status = Command::new("npx")
.arg("playwright")
.arg("install")
Expand Down

0 comments on commit 1a014e8

Please sign in to comment.