Improve locked vault browser workflow
This commit is contained in:
@@ -49,6 +49,24 @@ test("tokenPendingApprovalCount reads token-scoped approval state", () => {
|
||||
assert.equal(background.tokenPendingApprovalCount({}), 0);
|
||||
});
|
||||
|
||||
test("shouldContinueWatchingState keeps polling locked login pages", () => {
|
||||
assert.equal(background.shouldContinueWatchingState({
|
||||
pageHasLoginForm: true,
|
||||
pendingFill: false,
|
||||
status: { locked: true }
|
||||
}), true);
|
||||
assert.equal(background.shouldContinueWatchingState({
|
||||
pageHasLoginForm: true,
|
||||
pendingFill: true,
|
||||
status: { locked: false }
|
||||
}), true);
|
||||
assert.equal(background.shouldContinueWatchingState({
|
||||
pageHasLoginForm: true,
|
||||
pendingFill: false,
|
||||
status: { locked: false }
|
||||
}), false);
|
||||
});
|
||||
|
||||
test("default settings include a blank bearer token that can be overridden by harness patching", () => {
|
||||
assert.equal(background.defaultSettings.bearerToken, "");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user