Bugzilla – Attachment 126649 Details for
Bug 19185
Web installer and onboarding tool selenium test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19185: Fix tests
Bug-19185-Fix-tests.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2021-10-21 08:49:12 UTC
(
hide
)
Description:
Bug 19185: Fix tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-21 08:49:12 UTC
Size:
1.75 KB
patch
obsolete
>From 60cf7bc10a415a15d3377363ef5b64d6fd3b59fa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 28 Apr 2021 16:36:12 +0200 >Subject: [PATCH] Bug 19185: Fix tests > >--- > t/db_dependent/selenium/00-installation.t | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/selenium/00-installation.t b/t/db_dependent/selenium/00-installation.t >index 990b6982a8..42fd360c14 100644 >--- a/t/db_dependent/selenium/00-installation.t >+++ b/t/db_dependent/selenium/00-installation.t >@@ -55,6 +55,7 @@ SKIP: { > > my $lang = "en"; # The idea here is to loop on all languages > >+ $driver->set_window_size(3840,1080); > # Welcome to the Koha web installer > $s->fill_form({userid => $db_user, password => $db_pass }); > $s->submit_form; >@@ -97,10 +98,15 @@ SKIP: { > #} > $s->submit_form; > >+ for (1..20){ # FIXME This is really ugly, but for an unknown reason the next submit_form is resubmitting the same form. So waiting for the next page to be effectively loaded >+ my $title = $s->driver->get_title; >+ last if $title =~ m|Default data loaded|; >+ sleep 1; >+ } >+ > # Default data loaded > $s->submit_form; > >- #$s->submit_form; > $s->click( { href => '/installer/onboarding.pl', main => 'installer-step3' } ); > > # Create a library >@@ -142,7 +148,7 @@ SKIP: { > like( $s->driver->get_title, qr(Log in to Koha), 'After the onboarding process the user should have landed in the login form page'); > $s->submit_form; > >- is( $s->driver->get_title, 'Koha staff client', 'The credentials we created should work'); >+ is( $s->driver->get_title, 'Koha staff interface', 'The credentials we created should work'); > > $driver->quit(); > }; >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19185
:
66508
|
68830
|
75088
|
75089
|
75090
|
81913
|
81914
|
81915
|
103406
|
103407
|
103408
|
103416
|
105796
|
105797
|
105798
|
105799
|
120273
|
126646
|
126647
|
126648
| 126649 |
126650
|
126651
|
126652
|
126819
|
126901
|
126918
|
126984