CI e2e 수정
This commit is contained in:
@@ -820,6 +820,7 @@ function EditorPageInner() {
|
||||
useEffect(() => {
|
||||
if (!authChecked) return;
|
||||
if (typeof window === "undefined") return;
|
||||
if ((window as any).__PB_DISABLE_AUTOSAVE) return;
|
||||
|
||||
const slug = projectConfig?.slug?.trim();
|
||||
if (!slug) return;
|
||||
@@ -861,6 +862,7 @@ function EditorPageInner() {
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof window === "undefined") return;
|
||||
if ((window as any).__PB_DISABLE_AUTOSAVE) return;
|
||||
|
||||
const slug = projectConfig?.slug?.trim();
|
||||
if (!slug) return;
|
||||
|
||||
@@ -42,6 +42,7 @@ export default function PreviewPage() {
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof window === "undefined") return;
|
||||
if ((window as any).__PB_DISABLE_AUTOSAVE) return;
|
||||
|
||||
const configSlugRaw = (projectConfig as any)?.slug?.trim?.();
|
||||
const configSlug =
|
||||
|
||||
@@ -10,6 +10,8 @@ test.beforeEach(async ({ page }) => {
|
||||
window.localStorage.clear();
|
||||
} catch {
|
||||
}
|
||||
|
||||
(window as any).__PB_DISABLE_AUTOSAVE = true;
|
||||
});
|
||||
|
||||
await page.route("**/api/auth/me", async (route) => {
|
||||
|
||||
@@ -11,6 +11,8 @@ test.beforeEach(async ({ page }) => {
|
||||
window.localStorage.clear();
|
||||
} catch {
|
||||
}
|
||||
|
||||
(window as any).__PB_DISABLE_AUTOSAVE = true;
|
||||
});
|
||||
|
||||
await page.route("**/api/auth/me", async (route) => {
|
||||
|
||||
@@ -27,6 +27,8 @@ test.beforeEach(async ({ page }) => {
|
||||
} catch {
|
||||
// localStorage 접근 실패는 테스트 진행에 치명적이지 않으므로 조용히 무시한다.
|
||||
}
|
||||
|
||||
(window as any).__PB_DISABLE_AUTOSAVE = true;
|
||||
});
|
||||
|
||||
await page.route("**/api/auth/me", async (route) => {
|
||||
|
||||
Reference in New Issue
Block a user