pinokiod 7.5.28 → 7.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ const buildHomeSelectionPayload = (menuItem, index) => {
|
|
|
33
33
|
return payload
|
|
34
34
|
}
|
|
35
35
|
const buildHomeSelectionUrl = (menuItem, index) => {
|
|
36
|
-
const base = homeRunApp && homeRunApp.browser_url ? homeRunApp.browser_url : ""
|
|
36
|
+
const base = homeRunApp && homeRunApp.view_url ? homeRunApp.view_url : (homeRunApp && homeRunApp.browser_url ? homeRunApp.browser_url : "")
|
|
37
37
|
if (!base) {
|
|
38
38
|
return menuItem.href || "#"
|
|
39
39
|
}
|
|
@@ -391,3 +391,10 @@ test("static guard: open without launching disables page-load script frame selec
|
|
|
391
391
|
assert.match(appView, /if \(!target && !automaticSelectionDisabled && followCurrentDefault\)/)
|
|
392
392
|
assert.match(appView, /if \(!target && !automaticSelectionDisabled && preselected && preselected !== devTab\)/)
|
|
393
393
|
})
|
|
394
|
+
|
|
395
|
+
test("static guard: home run command selection opens without launching before selecting command", async () => {
|
|
396
|
+
const homeRunMenu = await fs.readFile(path.resolve(root, "server/views/partials/home_run_menu.ejs"), "utf8")
|
|
397
|
+
|
|
398
|
+
assert.match(homeRunMenu, /homeRunApp && homeRunApp\.view_url \? homeRunApp\.view_url :/)
|
|
399
|
+
assert.match(homeRunMenu, /pinokio_home_select: JSON\.stringify\(buildHomeSelectionPayload\(menuItem, index\)\)/)
|
|
400
|
+
})
|