ce274f7 webui tests: fix test_host:test_crud failure

1 file Authored by pvoborni 5 years ago, Committed by tdudlak 5 years ago,
    webui tests: fix test_host:test_crud failure
    
    test_host.py::test_host::test_crud fails in nightly tests in delete record
    step.
    
    It started to fail probably after commit 4295df17a42897f6f59be21c25c5dd03984e35d3
    which changed host-add behavior into showing a warning message about DNS resolution
    instead of raising an error. This warning notification stays displayed for some
    time, as all longer, notifications. By being open it takes some area on the page.
    Given that webui tests proceeds quicker than a user, the notification can
    cover some elements.
    
    The test fails because web driver cannot click on an element which is covered
    by the notification. In this case, it cannot open a deleter dialog.
    
    So the fix is to close the notification(s). This is OK since a user would do
    it as well if it was in a way.
    
    This kind of issue is harder to reproduce when testing locally because
    most people uses screen resolution 1920x1200 or full HD. PR-CI uses
    1400x1200 for web ui testing.
      /usr/bin/Xvfb $DISPLAY -ac -noreset -screen 0 1400x1200x8
    
    So alternative fix would be to change resolution used by the PR-CI. Combination
    of both could be the best.
    
    https://pagure.io/freeipa/issue/7468
    
    Reviewed-By: Felipe Barreto <fbarreto@redhat.com>