Updated the URL used to obtain the SPA session and hid the Manage Time icon for SALES_REP users
This commit is contained in:
@@ -72,7 +72,7 @@ function harness({ validAfter = 0 } = {}) {
|
||||
await flush();
|
||||
}
|
||||
function navigation(overrides = {}) {
|
||||
headers.emit({ tabId: 91, type: "main_frame", statusCode: 200, url: "https://spa.oracle.com/", ...overrides });
|
||||
headers.emit({ tabId: 91, type: "main_frame", statusCode: 200, url: "https://spa.oracle.com/oalcrm/web/api/g2m-consumer-application/ui/index.html?ojr=whitespace", ...overrides });
|
||||
}
|
||||
function cookie() {
|
||||
cookies.emit({ removed: false, cookie: { name: "synthetic-session", value: "never-log-this-cookie", domain: "spa.oracle.com",
|
||||
@@ -119,7 +119,7 @@ test("callback 401 restarts only the owned SPA home; another HTTP 200 error page
|
||||
h.navigation({ statusCode: 401, url: "https://spa.oracle.com/cloudgate/v1/oauth2/callback?code=never-replay" });
|
||||
await h.advance(1000);
|
||||
assert.equal(h.updates.length, 1);
|
||||
assert.equal(h.updates[0].details.url, "https://spa.oracle.com/");
|
||||
assert.equal(h.updates[0].details.url, "https://spa.oracle.com/oalcrm/web/api/g2m-consumer-application/ui/index.html?ojr=whitespace");
|
||||
assert.equal(h.updates[0].details.active, false);
|
||||
h.navigation();
|
||||
await h.advance(10000);
|
||||
|
||||
Reference in New Issue
Block a user