The `maximize` method didn't work as we expected and didn't resize the window, causing issues in tests expecting the window to be larger.
The `maximize` method didn't work as we expected and didn't resize the window, causing issues in tests expecting the window to be larger.