Skip to content

Commit

Permalink
fixed test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Oct 24, 2024
1 parent 6aff1a4 commit f56d058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/content.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ test('測試导航', async ({ room, content, serviceWorker }) => {

})

test('測試 强制啓動 模式', async ({ context, optionPageUrl, page, content }) => {
test('測試 强制啓動 模式', async ({ context, optionPageUrl, page, content, isThemeRoom }) => {

test.skip(isThemeRoom, '此測試不適用於大海報房間')

logger.info('進入離綫的直播間...')
// this room is always offline (guess what)
Expand Down
2 changes: 1 addition & 1 deletion tests/pages/options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('測試所有設定區塊能否展開', async ({ page }) => {
await form.waitFor({ state: 'attached' })
expect(form).toBeDefined()
const sections = await form.locator('> section').all()
expect(sections.length).toBe(6)
expect(sections.length).toBe(7)
for (const section of sections) {
await section.click()
}
Expand Down

0 comments on commit f56d058

Please sign in to comment.