pinokiod 7.5.8 → 7.5.9
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
|
@@ -919,7 +919,6 @@ const renderCandidates = () => {
|
|
|
919
919
|
${requirementWarning}
|
|
920
920
|
<div class="autolaunch-feedback" data-feedback></div>
|
|
921
921
|
</div>
|
|
922
|
-
${renderDependencySection(app)}
|
|
923
922
|
${hasCandidates ? "" : '<div class="autolaunch-section"><div class="autolaunch-empty">No local scripts were found for this app.</div></div>'}
|
|
924
923
|
${renderScriptSection("Menu scripts", "From pinokio.js", candidateState.menu || [])}
|
|
925
924
|
${renderScriptSection("Other local scripts", "Advanced", candidateState.other || [])}
|
|
@@ -936,6 +935,7 @@ const renderCandidates = () => {
|
|
|
936
935
|
</button>
|
|
937
936
|
</div>
|
|
938
937
|
</div>
|
|
938
|
+
${renderDependencySection(app)}
|
|
939
939
|
`);
|
|
940
940
|
bindDetailControls();
|
|
941
941
|
};
|
|
@@ -74,6 +74,26 @@ test("launch settings visible labels use autolaunch wording", async () => {
|
|
|
74
74
|
assert.doesNotMatch(sidebar, />Launch settings</)
|
|
75
75
|
})
|
|
76
76
|
|
|
77
|
+
test("autolaunch page presents launch script choices before requirements", async () => {
|
|
78
|
+
const globalView = await fs.readFile(path.resolve(root, "server/views/autolaunch.ejs"), "utf8")
|
|
79
|
+
|
|
80
|
+
const currentIndex = globalView.indexOf('<h3 class="autolaunch-section-title">Current</h3>')
|
|
81
|
+
const menuIndex = globalView.indexOf('${renderScriptSection("Menu scripts"')
|
|
82
|
+
const otherIndex = globalView.indexOf('${renderScriptSection("Other local scripts"')
|
|
83
|
+
const manualIndex = globalView.indexOf('<div class="autolaunch-manual">')
|
|
84
|
+
const requirementsIndex = globalView.indexOf('${renderDependencySection(app)}')
|
|
85
|
+
|
|
86
|
+
assert.notEqual(currentIndex, -1)
|
|
87
|
+
assert.notEqual(menuIndex, -1)
|
|
88
|
+
assert.notEqual(otherIndex, -1)
|
|
89
|
+
assert.notEqual(manualIndex, -1)
|
|
90
|
+
assert.notEqual(requirementsIndex, -1)
|
|
91
|
+
assert.ok(currentIndex < menuIndex)
|
|
92
|
+
assert.ok(menuIndex < otherIndex)
|
|
93
|
+
assert.ok(otherIndex < manualIndex)
|
|
94
|
+
assert.ok(manualIndex < requirementsIndex)
|
|
95
|
+
})
|
|
96
|
+
|
|
77
97
|
test("startup progress uses canonical ready-state progress instead of autolaunch mirrors", async () => {
|
|
78
98
|
const kernelIndex = await fs.readFile(path.resolve(root, "kernel/index.js"), "utf8")
|
|
79
99
|
const autolaunch = await fs.readFile(path.resolve(root, "kernel/autolaunch.js"), "utf8")
|