mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
fix(chromium): disable AutoExpandDetailsElement as it breaks the web (#10679)
This commit is contained in:
parent
de6af16744
commit
5bde171657
@ -296,7 +296,7 @@ const DEFAULT_ARGS = [
|
||||
'--disable-default-apps',
|
||||
'--disable-dev-shm-usage',
|
||||
'--disable-extensions',
|
||||
'--disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame',
|
||||
'--disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement',
|
||||
'--allow-pre-commit-input',
|
||||
'--disable-hang-monitor',
|
||||
'--disable-ipc-flooding-protection',
|
||||
|
@ -178,3 +178,16 @@ it('allInnerTexts should work', async ({ page }) => {
|
||||
await page.setContent(`<div>A</div><div>B</div><div>C</div>`);
|
||||
expect(await page.locator('div').allInnerTexts()).toEqual(['A', 'B', 'C']);
|
||||
});
|
||||
|
||||
it('isVisible and isHidden should work with details', async ({ page }) => {
|
||||
await page.setContent(`<details>
|
||||
<summary>click to open</summary>
|
||||
<ul>
|
||||
<li>hidden item 1</li>
|
||||
<li>hidden item 2</li>
|
||||
<li>hidden item 3</li>
|
||||
</ul
|
||||
</details>`);
|
||||
|
||||
await expect(page.locator('ul')).toBeHidden();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user