Unverified Commit 2b0e3f1d authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

test: allow dpl query suffix in scss url-global expectation (#89856)

Fixes deployment test failure from
https://github.com/vercel/next.js/pull/89771

x-ref:
https://github.com/vercel/next.js/actions/runs/21921362927/job/63302154502

## Summary
- update the SCSS `url-global` background-image assertion to allow
optional query suffixes on emitted svg asset URLs
- this handles deploy-mode URLs that include `?dpl=...` while keeping
the existing path checks intact

## Verification
- validated against deploy logs from failing job `63302154502`: URLs are
correct and include `?dpl=...`
- local run: `NEXT_SKIP_ISOLATE=1 NEXT_TEST_MODE=dev pnpm testonly
test/e2e/app-dir/scss/url-global/url-global.test.ts`
  - `sass` case passed
- `sass-embedded` case blocked locally by missing `sass-embedded` module
in this environment
parent b9ec2e4f
......@@ -33,7 +33,7 @@ describe.each([
.elementByCss('.red-text')
.getComputedCss('background-image')
expect(background).toMatch(
/url\(".*\/_next\/static\/media\/dark\..*\.svg"\), url\(".*\/_next\/static\/media\/dark2\..*\.svg"\)/
/url\(".*\/_next\/static\/media\/dark\..*\.svg(?:\?.*)?"\), url\(".*\/_next\/static\/media\/dark2\..*\.svg(?:\?.*)?"\)/
)
const urls = getUrlFromBackgroundImage(background)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment