TT#56376 selenium: improve tab title test

Common.pm:
- Execute tab title test after page test to ensure tab title has been
loaded in the meantime

Change-Id: Ib4bf0a3dd71834631439a828fcf9a10915bd4e84
changes/80/33880/2
Nico Schedel 6 years ago
parent 2d49f5dc8f
commit ee222bc901

@ -28,8 +28,8 @@ sub login_ok {
$self->driver->find_element('#submit', 'css')->click();
diag("Checking Admin interface");
is($self->driver->get_title, 'Dashboard', 'Tab Title is correct');
is($self->driver->find_element('//*[@id="masthead"]//h2')->get_text(), "Dashboard", 'We are in the Dashboard. Login Successful');
is($self->driver->find_element('//*[@id="masthead"]//h2')->get_text(), "Dashboard", 'Dashboard is shown');
is($self->driver->get_title, 'Dashboard', 'We are in the Dashboard. Login Successful');
}
sub create_domain {

Loading…
Cancel
Save