We running this code locally I encountered an issue. I run the tests on a Windows VM which has the screen resolution similar to the grid VMs.

The change flag button is not in view so the click action scrolls the page. The problem is that it scrolls the page until the button is under the header, which makes it impossible to click it.

Resolution I used:
1024 x 768