From c4212aba5429a075add93c60ed1ca1f2f30db489 Mon Sep 17 00:00:00 2001 From: Kara Brightwell Date: Tue, 21 Jan 2025 17:45:46 +0000 Subject: [PATCH] test: use a starts-with selector for expected script, because it's a hashed filename --- examples/ft-ui/__test__/integration.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ft-ui/__test__/integration.test.js b/examples/ft-ui/__test__/integration.test.js index 1444f4e2d..0ea20da4c 100644 --- a/examples/ft-ui/__test__/integration.test.js +++ b/examples/ft-ui/__test__/integration.test.js @@ -14,7 +14,7 @@ describe('examples/ft-ui', () => { }) it('loads the configured scripts', async () => { - await expect(page).toMatchElement('script[src="public/scripts.bundle.js"]') + await expect(page).toMatchElement('script[src^="/public/scripts"]') }) })