Updated the process for retrieving records from CRMServiceRequests
This commit is contained in:
@@ -84,7 +84,7 @@ test("internal SR form validates Save, maps parent data, prevents duplicate post
|
||||
assert.ok(!h.walk(h.modal).includes(form));
|
||||
});
|
||||
|
||||
test("internal SR uses Session without TokenRelay and reports unavailable iframe host", async () => {
|
||||
test("internal SR uses Session and offers manual retry after 401 without automatic probes", async () => {
|
||||
const h = setup();
|
||||
let renewals = 0;
|
||||
const sent = [];
|
||||
@@ -106,6 +106,11 @@ test("internal SR uses Session without TokenRelay and reports unavailable iframe
|
||||
assert.equal(sent[0].token, undefined);
|
||||
assert.ok(sent.every(item => item.type === "opportunitiesExtension.requestInternalServiceRequest"));
|
||||
assert.ok(h.walk(h.panel()).some(node => node.attributes.role === "alert"));
|
||||
const retry = h.walk(h.panel()).find(node => node.attributes["aria-label"] === "Retry loading Internal Service Requests");
|
||||
assert.ok(retry);
|
||||
retry.listeners.click();
|
||||
await flush();
|
||||
assert.equal(sent.length, 2);
|
||||
});
|
||||
|
||||
function setup() {
|
||||
|
||||
Reference in New Issue
Block a user