Skip to content

Commit

Permalink
Try to fix playwright testing
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 10, 2024
1 parent 54430d5 commit eedaf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/utils/route-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SearchScope } from '../../types/searchScope'
import { isStableDeploy } from '../../config'
import { getSearchTermFromRequest } from '../components/Search/search-utils'

export const isTesting = () => process.env.NODE_ENV === 'test'
export const isTesting = () => process.env.NODE_ENV === 'test' || navigator.webdriver

export const getFixedNetwork = () =>
isTesting() ? undefined : (process.env.REACT_APP_FIXED_NETWORK as Network | undefined)
Expand Down

0 comments on commit eedaf86

Please sign in to comment.