Skip to content

Commit 4774b61

Browse files
authored
test: use headed instead of headful in CLI args (microsoft#1028)
1 parent a595117 commit 4774b61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/async/test_emulation_focus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def test_should_change_document_activeElement(page, server):
9797

9898

9999
async def test_should_not_affect_screenshots(page, server, assert_to_be_golden):
100-
# Firefox headful produces a different image.
100+
# Firefox headed produces a different image.
101101
page2 = await page.context.new_page()
102102
await asyncio.gather(
103103
page.set_viewport_size({"width": 500, "height": 500}),

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def assetdir() -> Path:
5555
@pytest.fixture(scope="session")
5656
def launch_arguments(pytestconfig: Any) -> Dict:
5757
return {
58-
"headless": not pytestconfig.getoption("--headful"),
58+
"headless": not pytestconfig.getoption("--headed"),
5959
"channel": pytestconfig.getoption("--browser-channel"),
6060
}
6161

@@ -181,10 +181,10 @@ def pytest_addoption(parser: Any) -> None:
181181
help="Browser channel to be used.",
182182
)
183183
parser.addoption(
184-
"--headful",
184+
"--headed",
185185
action="store_true",
186186
default=False,
187-
help="Run tests in headful mode.",
187+
help="Run tests in headed mode.",
188188
)
189189

190190

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy