상시 프리렌더와 중복 예약 안내를 없애고, 검수된 발행 버전을 보존한다. 미리보기는 실제 렌더 완료까지 스피너를 표시한다. 사이트 81건, 발행·롤백·서치콘솔 45건, 프로세스 수명 3건 통과. 빌더·사이트 빌드 및 compose 설정 검증 통과.
16 lines
789 B
JavaScript
16 lines
789 B
JavaScript
import {test} from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import {editorParams} from '../src/features/onboarding/wizardQuery.ts';
|
|
|
|
test('편집기 진입은 사업장 ID만 남긴다', () => {
|
|
const result = editorParams(new URLSearchParams('step=editor&flow=onboarding&jobId=old'), 'place-1');
|
|
assert.equal(result.toString(), 'placeId=place-1');
|
|
});
|
|
test('주소의 사업장이 저장된 다른 사업장보다 우선이다', () => {
|
|
const result = editorParams(new URLSearchParams('step=editor&placeId=place-2'), 'place-1');
|
|
assert.equal(result.toString(), 'placeId=place-2');
|
|
});
|
|
test('사업장 없는 편집기 주소는 검색 단계로 보낸다', () => {
|
|
assert.equal(editorParams(new URLSearchParams('step=editor'), null).toString(), 'step=search');
|
|
});
|