Skip to content

Commit f9978bc

Browse files
authored
Test: add missing pointer-events assertion to sessionsListTwistie spec
Ensures complete coverage of unhover state by checking pointer-events property alongside opacity and visibility. Fixes #333430
1 parent e3ce07e commit f9978bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/componentFixtures/playwright/tests/sessionsListTwistie.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@ test('reveals the nested chat twistie only while hovering the session row', asyn
1313
const twistie = sessionRow.locator('.session-chat-twistie.collapsible');
1414
const statusIcon = sessionRow.locator('.session-icon');
1515

16+
// Başlangıç durumu kontrolleri
1617
await expect(twistie).toHaveCSS('opacity', '0');
1718
await expect(twistie).toHaveCSS('pointer-events', 'none');
1819
await expect(statusIcon).toHaveCSS('visibility', 'visible');
1920

21+
// Hover durumu
2022
await sessionRow.hover();
2123

2224
await expect(twistie).toHaveCSS('opacity', '1');
2325
await expect(twistie).toHaveCSS('pointer-events', 'auto');
2426
await expect(statusIcon).toHaveCSS('visibility', 'hidden');
2527

28+
// Hover'ı kaldırma durumu
2629
await page.mouse.move(0, 0);
2730

2831
await expect(twistie).toHaveCSS('opacity', '0');
32+
await expect(twistie).toHaveCSS('pointer-events', 'none'); // Eksik olan güvenlik kontrolü eklendi
2933
await expect(statusIcon).toHaveCSS('visibility', 'visible');
3034
});

0 commit comments

Comments
 (0)