Bugzilla – Attachment 68832 Details for
Bug 19243
Selenium test for testing the administration module functionality - part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19243: Patch t/lib/Selenium to use ENV and fix login.
Bug-19243-Patch-tlibSelenium-to-use-ENV-and-fix-lo.patch (text/plain), 1.31 KB, created by
Mark Tompsett
on 2017-10-30 05:00:41 UTC
(
hide
)
Description:
Bug 19243: Patch t/lib/Selenium to use ENV and fix login.
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-10-30 05:00:41 UTC
Size:
1.31 KB
patch
obsolete
>From 452dfcfbf6d64a2eeb8b76517db3a25aeaa1404e Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 30 Oct 2017 04:58:32 +0000 >Subject: [PATCH] Bug 19243: Patch t/lib/Selenium to use ENV and fix login. > >--- > t/lib/Selenium.pm | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm >index c993fd5..e6d57c4 100644 >--- a/t/lib/Selenium.pm >+++ b/t/lib/Selenium.pm >@@ -12,13 +12,16 @@ use Selenium::Waiter qw/wait_until/; > use Try::Tiny; > > my $dbh = C4::Context->dbh; >-my $login = 'koha'; >-my $password = 'koha'; >-my $base_url= 'http://'.C4::Context->preference("staffClientBaseURL")."/cgi-bin/koha/"; >+my $login = $ENV{KOHA_USER} || 'koha'; >+my $password = $ENV{KOHA_PASS} || 'koha'; >+my $staff_client_base_url = >+ $ENV{KOHA_INTRANET_URL} || C4::Context->preference("staffClientBaseUrl") || q{}; >+my $base_url= $staff_client_base_url . "/cgi-bin/koha/"; >+my $opac_url = $ENV{KOHA_OPAC_URL} || C4::Context->preference("OPACBaseURL") || q{}; > > sub auth { > my ( $driver, $login, $password) = @_; >- fill_form( $driver, { userid => 'koha', password => 'koha' } ); >+ fill_form( $driver, { userid => $login, password => $password } ); > my $login_button = $driver->find_element('//input[@id="submit"]'); > $login_button->submit(); > } >-- >2.1.4
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 19243
:
66788
|
67433
|
67492
|
67493
|
67494
|
67495
|
67496
|
67497
|
68123
|
68124
|
68125
|
68832
|
68833
|
69757
|
69939
|
70160
|
70161
|
70162
|
70163
|
70164
|
70268
|
70269
|
70270