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

Function expandSettingsSection

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

Source from the content-addressed store, hash-verified

7539}
7540
7541async function expandSettingsSection(section: ReturnType<Page['locator']>): Promise<void> {
7542 await section.scrollIntoViewIfNeeded();
7543 const isCollapsed = await section.evaluate((el) =>
7544 el.classList.contains('tasknotes-settings__collapsible-section--collapsed')
7545 );
7546 if (isCollapsed) {
7547 await section.locator('.tasknotes-settings__collapsible-section-header').first().click();
7548 await expect(section).not.toHaveClass(/tasknotes-settings__collapsible-section--collapsed/);
7549 }
7550}
7551
7552test.describe('Issue #1419: Custom statuses not saving', () => {
7553 test('should persist new custom status values after closing and reopening settings', async () => {

Callers 1

tasknotes.spec.tsFile · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected