MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / expandSettingsCard

Function expandSettingsCard

e2e/tasknotes.spec.ts:7530–7539  ·  view source on GitHub ↗
(card: ReturnType<Page['locator']>)

Source from the content-addressed store, hash-verified

7528// ============================================================================
7529
7530async 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
7541async function expandSettingsSection(section: ReturnType<Page['locator']>): Promise<void> {
7542 await section.scrollIntoViewIfNeeded();

Callers 1

tasknotes.spec.tsFile · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected