Skip to content

Commit

Permalink
test: bypass redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
EnixCoda committed Aug 10, 2023
1 parent e31731f commit f56c65d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion __tests__/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ export async function waitForRedirect(action?: () => void | Promise<void>) {
fired = true
return action()
})
return Promise.race([waitForLegacyPJAXRedirect($action), waitForTurboRedirect($action)])
return Promise.race([
waitForLegacyPJAXRedirect($action),
waitForTurboRedirect($action),
sleep(3 * 1000),
])
}

export async function patientClick(selector: string) {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Gitako.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import { RepoContextWrapper } from '../containers/RepoContext'
import { StateBarStateContextWrapper } from '../containers/SideBarState'

export function Gitako() {
const mountPoint = React.useMemo(() => insertMountPoint(), [])
return (
<InspectorContextWrapper>
<StyleSheetManager target={insertMountPoint()}>
<StyleSheetManager target={mountPoint}>
<ReloadContextWrapper>
<ErrorBoundary>
<ConfigsContextWrapper>
Expand Down

0 comments on commit f56c65d

Please sign in to comment.