diff --git a/frontend/playwright.api.config.ts b/frontend/playwright.api.config.ts index 1de4307fa..ee11c47f1 100644 --- a/frontend/playwright.api.config.ts +++ b/frontend/playwright.api.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, + workers: process.env.CI ? 4 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ @@ -41,11 +41,11 @@ export default defineConfig({ dependencies: ['setup'], }, - { - name: 'firefox', - use: { ...devices['Desktop Firefox'], storageState: 'playwright/.auth/user.json' }, - dependencies: ['setup'], - }, + // { + // name: 'firefox', + // use: { ...devices['Desktop Firefox'], storageState: 'playwright/.auth/user.json' }, + // dependencies: ['setup'], + // }, { name: 'webkit', diff --git a/frontend/playwright.mock.config.ts b/frontend/playwright.mock.config.ts index d737aceb8..cfbd11fed 100644 --- a/frontend/playwright.mock.config.ts +++ b/frontend/playwright.mock.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, + workers: process.env.CI ? 4 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ @@ -38,10 +38,10 @@ export default defineConfig({ use: { ...devices['Desktop Chrome'] }, }, - { - name: 'firefox', - use: { ...devices['Desktop Firefox'] }, - }, + // { + // name: 'firefox', + // use: { ...devices['Desktop Firefox'] }, + // }, { name: 'webkit', diff --git a/frontend/src/apis/checklist.ts b/frontend/src/apis/checklist.ts index 7ec6e1267..7e18eca45 100644 --- a/frontend/src/apis/checklist.ts +++ b/frontend/src/apis/checklist.ts @@ -18,8 +18,9 @@ export const getChecklistAllQuestions = async () => { export const getChecklistDetail = async (id: number) => { const response = await fetcher.get({ url: BASE_URL + ENDPOINT.CHECKLIST_ID_V1(id) }); - const data = await response.json(); - return data as ChecklistInfo; + const data = (await response.json()) as ChecklistInfo; + data.room = Object.fromEntries(Object.entries(data.room).filter(([, value]) => value !== null)); + return data; }; export const getChecklists = async (isLikeFiltered: boolean = false) => {