Fixed the SPA authentication flow
This commit is contained in:
@@ -45,6 +45,8 @@ test("distribution contracts: manifests, execution boundaries and deterministic
|
||||
content_scripts: [{
|
||||
matches: ["https://eeho.fa.us2.oraclecloud.com/hcmUI/faces/FuseWelcome*", "https://eeho.fa.us2.oraclecloud.com/fscmUI/faces/FuseWelcome*"],
|
||||
js: ["content.js"], all_frames: true, run_at: "document_idle"
|
||||
}, {
|
||||
matches: ["https://spa.oracle.com/*"], js: ["spa-page.js"], all_frames: false, run_at: "document_idle"
|
||||
}]
|
||||
};
|
||||
for (const target of ["chromium", "firefox"]) {
|
||||
@@ -57,6 +59,9 @@ test("distribution contracts: manifests, execution boundaries and deterministic
|
||||
assert.equal(output, composeScript(file.replace(".js", "")));
|
||||
assert.doesNotThrow(() => new vm.Script(output, { filename: `${target}/${file}` }));
|
||||
}
|
||||
const pageScript = fs.readFileSync(path.join(root, "dist", target, "spa-page.js"), "utf8");
|
||||
assert.equal(pageScript, composeScript("spa-page"));
|
||||
assert.doesNotThrow(() => new vm.Script(pageScript));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user