Skip to content
Snippets Groups Projects
Commit de0dba93 authored by Tom Philip's avatar Tom Philip
Browse files

Merge branch 'NO_ISSUE_fix-e2e-tests-ssr-guest-user-access' into 'main'

NO_ISSUE_fix-e2e-tests-ssr-guest-user-access

See merge request app/holi-frontends!3150
parents 83e051fd 5da115ad
No related branches found
No related tags found
No related merge requests found
...@@ -389,7 +389,11 @@ export const withSSR = async ( ...@@ -389,7 +389,11 @@ export const withSSR = async (
url: string, url: string,
actions: (page: Page, options?: { testSSR?: boolean }) => Promise<void> actions: (page: Page, options?: { testSSR?: boolean }) => Promise<void>
): Promise<void> => { ): Promise<void> => {
const context = await browser.newContext({ javaScriptEnabled: false }) const context = await browser.newContext({
javaScriptEnabled: false,
userAgent:
'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
})
const page = await context.newPage() const page = await context.newPage()
// Retry the navigation if it fails // Retry the navigation if it fails
await gotoWithRetries(page, url) // Fix: remove quotes around 'url' await gotoWithRetries(page, url) // Fix: remove quotes around 'url'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment