Skip to content

Commit 5a83225

Browse files
committed
test: desktop login/logout integ tests
1 parent 3f09c25 commit 5a83225

File tree

4 files changed

+457
-1
lines changed

4 files changed

+457
-1
lines changed

src/services/login-desktop.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,15 @@ define(function (require, exports, module) {
420420
init();
421421
}
422422

423+
// Test-only exports for integration testing
424+
if (Phoenix.isTestWindow) {
425+
window._test_login_desktop_exports = {
426+
setFetchFn: function _setFetchFn(fn) {
427+
fetchFn = fn;
428+
}
429+
};
430+
}
431+
423432
// public exports
424433
exports.isLoggedIn = isLoggedIn;
425434

test/UnitTestSuite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ define(function (require, exports, module) {
120120
require("spec/spacing-auto-detect-integ-test");
121121
require("spec/promotions-integ-test");
122122
require("spec/login-browser-integ-test");
123+
require("spec/login-desktop-integ-test");
123124
require("spec/LocalizationUtils-test");
124125
require("spec/ScrollTrackHandler-integ-test");
125126
require("spec/login-utils-test");

0 commit comments

Comments
 (0)