From 9988fa46b94fe8c57f58136fd645505d945d81e7 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 5 Feb 2024 15:41:12 -0600 Subject: [PATCH] fix fullstack playwright tests --- packages/playwright-tests/fullstack.spec.js | 2 + .../playwright-tests/fullstack/src/main.rs | 1 - .../playwright-report/index.html | 69 ------------------- 3 files changed, 2 insertions(+), 70 deletions(-) delete mode 100644 packages/playwright-tests/playwright-report/index.html diff --git a/packages/playwright-tests/fullstack.spec.js b/packages/playwright-tests/fullstack.spec.js index 2ddd72b47..52585aea0 100644 --- a/packages/playwright-tests/fullstack.spec.js +++ b/packages/playwright-tests/fullstack.spec.js @@ -3,6 +3,7 @@ const { test, expect } = require('@playwright/test'); test('button click', async ({ page }) => { await page.goto('http://localhost:3333'); + await page.waitForTimeout(1000); // Expect the page to contain the counter text. const main = page.locator('#main'); @@ -18,6 +19,7 @@ test('button click', async ({ page }) => { test('fullstack communication', async ({ page }) => { await page.goto('http://localhost:3333'); + await page.waitForTimeout(1000); // Expect the page to contain the counter text. const main = page.locator('#main'); diff --git a/packages/playwright-tests/fullstack/src/main.rs b/packages/playwright-tests/fullstack/src/main.rs index 495fe31f6..605e25fb7 100644 --- a/packages/playwright-tests/fullstack/src/main.rs +++ b/packages/playwright-tests/fullstack/src/main.rs @@ -15,7 +15,6 @@ fn main() { .launch(app); } -#[allow(unused)] fn app() -> Element { let mut count = use_signal(|| 12345); let mut text = use_signal(|| "...".to_string()); diff --git a/packages/playwright-tests/playwright-report/index.html b/packages/playwright-tests/playwright-report/index.html deleted file mode 100644 index 78bfa33f1..000000000 --- a/packages/playwright-tests/playwright-report/index.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - - \ No newline at end of file