Bugzilla – Attachment 78332 Details for
Bug 21295
Update selenium tests for Admin pages bootstrap updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21295: Update selenium tests for admin bootstrap changes
Bug-21295-Update-selenium-tests-for-admin-bootstra.patch (text/plain), 4.68 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-08-31 15:10:37 UTC
(
hide
)
Description:
Bug 21295: Update selenium tests for admin bootstrap changes
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-08-31 15:10:37 UTC
Size:
4.68 KB
patch
obsolete
>From a8b937282381d6757f1c0e45dcc116e3eb75019b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 30 Aug 2018 19:43:48 +0000 >Subject: [PATCH] Bug 21295: Update selenium tests for admin bootstrap changes > >To test: >1 - Setup and run selenium server as outlined here: >https://wiki.koha-community.org/wiki/Using_Selenium_with_Koha >2 - sudo koha-shell kohadev >3 - prove -v t/db_dependent/selenium/administration_tasks.t >4 - All should be green > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >All good! >--- > t/db_dependent/selenium/administration_tasks.t | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > >diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t >index 4e4f518485..575add96a9 100644 >--- a/t/db_dependent/selenium/administration_tasks.t >+++ b/t/db_dependent/selenium/administration_tasks.t >@@ -82,7 +82,7 @@ SKIP: { > $s->click( { href => '/admin/biblio_framework.pl', main_class => 'main container-fluid' } ) > ; # MARC bibliographic framework > $s->click( >- { href => '/admin/biblio_framework.pl?op=add_form', main => 'doc3' } ) >+ { href => '/admin/biblio_framework.pl?op=add_form', main_class => 'main container-fluid' } ) > ; # New framework > $s->fill_form( > { >@@ -95,7 +95,7 @@ SKIP: { > $s->click( > { > href => 'marctagstructure.pl?frameworkcode=' . $frameworkcode, >- main => 'doc3' >+ main_class => 'main container-fluid' > } > ); # MARC structure # FIXME '/admin/' is missing in the url > # TODO Click on OK to create the MARC structure >@@ -107,14 +107,14 @@ SKIP: { > ; # Koha administration > $s->click( { href => '/admin/branches.pl', main_class => 'main container-fluid' } ) > ; # Libraries and groups >- $s->click( { href => '/admin/branches.pl?op=add_form', main => 'doc3' } ) >+ $s->click( { href => '/admin/branches.pl?op=add_form', main_class => 'main container-fluid' } ) > ; # New library > $s->fill_form( { branchcode => $branchcode, branchname => 'my library' } ); > $s->submit_form; > $s->click( > { > href => '/admin/branches.pl?op=add_form&branchcode=' . $branchcode, >- main => 'doc3' >+ main_class => 'main container-fluid' > } > ); # Edit > $s->fill_form( { branchname => 'another branchname' } ); >@@ -132,14 +132,14 @@ SKIP: { > > $s->click( { href => '/admin/authorised_values.pl', main_class => 'main container-fluid' } ); #Authorized values > >- $s->click( { href => { 'ends-with' => '/admin/authorised_values.pl?op=add_form' }, main => 'doc3' } ); # New category >+ $s->click( { href => { 'ends-with' => '/admin/authorised_values.pl?op=add_form' }, main_class => 'main container-fluid' } ); # New category > $s->fill_form( { category => $av_category } ); > $s->submit_form; > > $s->click( > { > href => '/admin/authorised_values.pl?op=add_form&category=' . $av_category, >- main => 'doc3' >+ main_class => 'main container-fluid' > } > ); # New authorised value for ... > $s->fill_form( >@@ -157,7 +157,7 @@ SKIP: { > $s->click( > { > href => '/admin/authorised_values.pl?op=delete&searchfield=' . $av_category . '&id=' . $av_id, >- main => 'doc3' >+ main_class => 'main container-fluid' > } > ); > $s->driver->accept_alert; # Accept the modal "Are you sure you want to delete this authorized value?" >@@ -167,7 +167,7 @@ SKIP: { > $driver->get($mainpage); > $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration > $s->click( { href => '/admin/categories.pl', main_class => 'main container-fluid' } ); # Patron categories >- $s->click( { href => '/admin/categories.pl?op=add_form', main => 'doc3' } ); # New patron category >+ $s->click( { href => '/admin/categories.pl?op=add_form', main_class => 'main container-fluid' } ); # New patron category > > $s->fill_form( { categorycode => $category_code, description => 'Test category', enrolmentperiod => 12, category_type => 'A' } ); > $s->submit_form; >@@ -175,7 +175,7 @@ SKIP: { > $s->click( > { > href => '/admin/categories.pl?op=delete_confirm&categorycode=' . $category_code, >- main => 'doc3' >+ main_class => 'main container-fluid' > } > ); # Delete button > >-- >2.18.0
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 21295
:
78315
| 78332