mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
test: bypass redirect
This commit is contained in:
parent
e31731fead
commit
f56c65d879
2 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue