From f45697c4df5fbe1b05f36000121785189ad72255 Mon Sep 17 00:00:00 2001 From: Keith Schacht Date: Fri, 30 Aug 2024 20:00:35 -0500 Subject: [PATCH] Flip failing test to reflect product decision --- src/tests/functional/page_refresh_tests.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tests/functional/page_refresh_tests.js b/src/tests/functional/page_refresh_tests.js index 252a454c4..0b9172830 100644 --- a/src/tests/functional/page_refresh_tests.js +++ b/src/tests/functional/page_refresh_tests.js @@ -204,7 +204,7 @@ test("frames marked with refresh='morph' are excluded from full page morphing", await expect(page.locator("#refresh-morph")).toHaveText("Loaded morphed frame") }) -test("navigated frames without refresh attribute are reset after morphing", async ({ page }) => { +test("navigated frames without refresh attribute are not reset after morphing", async ({ page }) => { await page.goto("/src/tests/fixtures/page_refresh.html") await page.click("#refresh-after-navigation-link") @@ -216,17 +216,20 @@ test("navigated frames without refresh attribute are reset after morphing", asyn "navigates theframe" ) + //await new Promise(resolve => setTimeout(resolve, 300000)) + await page.click("#form-submit") await nextEventNamed(page, "turbo:render", { renderMethod: "morph" }) await nextBeat() - assert.ok( + + assert.notOk( await hasSelector(page, "#refresh-after-navigation-link"), "resets the frame" ) - assert.notOk( + assert.ok( await hasSelector(page, "#refresh-after-navigation-content"), "does not reload the frame" )