Skip to content
Snippets Groups Projects
Commit 97efb4ae authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: plState when template not selected

parent 335a1f61
No related branches found
No related tags found
No related merge requests found
......@@ -209,5 +209,10 @@ module.exports = query => {
return redirectUrl
}
if (Array.from(searchParam.keys()).length > 0) {
redirectUrl += `/?${searchParam.toString()}`
return redirectUrl
}
return null
}
......@@ -88,6 +88,23 @@ describe('> url parsing', () => {
it('> if using niftilayers should show deprecation worning')
it('> pluginStates should be fetched even if no template or parc are selected', async () => {
const searchParam = new URLSearchParams()
searchParam.set('pluginStates', 'http://localhost:3001/manifest.json')
await iavPage.goto(`/?${searchParam.toString()}`, { interceptHttp: true, doNotAutomate: true })
await iavPage.wait(10000)
const interceptedCalls = await iavPage.getInterceptedHttpCalls()
expect(
interceptedCalls
).toContain(jasmine.objectContaining(
{
method: 'GET',
url: 'http://localhost:3001/manifest.json'
}
))
})
it('> pluginStates should result in xhr to get pluginManifest', async () => {
const searchParam = new URLSearchParams()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment