(card: ReturnType<Page['locator']>)
| 7528 | // ============================================================================ |
| 7529 | |
| 7530 | async function expandSettingsCard(card: ReturnType<Page['locator']>): Promise<void> { |
| 7531 | await card.scrollIntoViewIfNeeded(); |
| 7532 | const isCollapsed = await card.evaluate((el) => |
| 7533 | el.classList.contains('tasknotes-settings__card--collapsed') |
| 7534 | ); |
| 7535 | if (isCollapsed) { |
| 7536 | await card.locator('.tasknotes-settings__card-header').first().click(); |
| 7537 | await expect(card).not.toHaveClass(/tasknotes-settings__card--collapsed/); |
| 7538 | } |
| 7539 | } |
| 7540 | |
| 7541 | async function expandSettingsSection(section: ReturnType<Page['locator']>): Promise<void> { |
| 7542 | await section.scrollIntoViewIfNeeded(); |
no test coverage detected