Skip to content

Commit

Permalink
test: make integration tests work with new headless mode (#6872)
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker authored Nov 27, 2024
1 parent e368796 commit e4742a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public static void setupClass() {
public void setup() throws Exception {
browser.setup(super::setup, this::setDriver, this::getDriver,
screenshotOnFailure);

// Set a default window size
testBench().resizeViewPortTo(1024, 800);
}

protected int getDeploymentPort() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public void timePickerWithMinAndMaxSetting() {
Assert.assertEquals(
"The first item in the dropdown should be the min value",
"5:00 AM", picker.getItemText(0));
// Make sure the item is in the viewport / rendered
picker.scrollToItem(1000);
Assert.assertEquals(
"The last item in the dropdown should be the max value",
"6:00 PM", picker.getLastItemText());
Expand Down

0 comments on commit e4742a4

Please sign in to comment.