22 lines
654 B
JavaScript
22 lines
654 B
JavaScript
// The Lucia project.
|
|
// Copyright 2026-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
|
|
|
/**
|
|
* API mocking is now handled by MSW (Mock Service Worker).
|
|
* This function is kept for backward compatibility but does nothing.
|
|
*/
|
|
export function setupApiIntercepts() {
|
|
// MSW handles all API interception via service worker.
|
|
}
|
|
|
|
/**
|
|
* Sets the luciaToken cookie and isLuciaLoggedIn cookie to simulate
|
|
* a logged-in state. API interception is handled by MSW.
|
|
*/
|
|
export function loginWithFixtures() {
|
|
cy.setCookie("luciaToken", "fake-access-token-for-testing");
|
|
cy.setCookie("isLuciaLoggedIn", "true");
|
|
}
|