fix(chromium): disable AutoExpandDetailsElement as it breaks the web (#10679)

This commit is contained in:
Pavel Feldman 2021-12-02 13:04:15 -08:00 committed by GitHub
parent de6af16744
commit 5bde171657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -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',

View File

@ -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();
});