Skip to content

Commit bb22c25

Browse files
committed
Fix: specify webdriver resolution to ensure enough width so that a full line of text fits on one line of the Client.
1 parent bd0501c commit bb22c25

File tree

1 file changed

+2
-0
lines changed
  • server/tests/overall_core

1 file changed

+2
-0
lines changed

server/tests/overall_core/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ macro_rules! harness {
164164
// Start the webdriver.
165165
let server_url = "http://localhost:4444";
166166
let mut caps = DesiredCapabilities::chrome();
167+
// Ensure the screen is wide enough for an 80-character line, used to word wrapping test in `test_client_updates`. Otherwise, this test send the End key to go to the end of the line...but it's not the end of the full line on a narrow screen.
168+
caps.add_arg("--window-size=1920,768")?;
167169
caps.add_arg("--headless")?;
168170
// On Ubuntu CI, avoid failures, probably due to running Chrome as
169171
// root.

0 commit comments

Comments
 (0)