Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch between test site url and x-default causes no pages to be scanned #215

Open
will-me opened this issue May 13, 2024 · 2 comments
Open

Comments

@will-me
Copy link

will-me commented May 13, 2024

Describe the bug

When site url is different from x-default url, tests fail to run.

Scenario
Test site url is: "https://testing.brand-mg4kapdsn.vercel.app/en-us/products"
x-default value is: "https://preprod.brand.com/en-us/products"

Test is ignored and logs out:

[debug] [Unlighthouse] HTML extract of 'https://testing.brand-mg4kapdsn.vercel.app/en-us/products' response succeeded. 
[debug] [Unlighthouse] Page has an alternative lang, ignoring '/en-us/products': 'https://preprod.brand.com/en-us/products'
[debug] [Unlighthouse] Ignoring route '/en-us/products'.

This is using a supplied list of urls not using the site crawler.

Reproduction

No response

System / Nuxt Info

No response

@adamkoppede
Copy link

adamkoppede commented May 13, 2024

Sounds like the behavior documented for scanner.ignoreI18nPages = true, which is the default. Setting it to false worked for me. I also provided an explicit list of URLs when I got bit by it.

@will-me
Copy link
Author

will-me commented May 14, 2024

@adamkoppede Yes you are correct, setting this to false did fix the issue. However we have dozens (and eventually hundreds) of pipelines that need to run this config. Setting this to false on a site with 15 locales will slow down the pipelines too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants