From 93f75b39ac621c3cc3ecb1208e9dee89bcbe4197 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 6 Nov 2023 10:13:48 +0000 Subject: [PATCH] Bug 35263: Add selenium tests Test plan, on k-t-d selenium (ktd --selenium up): 1) Apply just this tests patch 2) Run: prove t/db_dependent/selenium/administration_tasks.t 3) Notice it fails. Apply the other patch. Restart plack 4) Repeat step 2. Notice it passes. Signed-off-by: Katrin Fischer Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/selenium/administration_tasks.t | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t index dfaafdacd0..802388eb46 100755 --- a/t/db_dependent/selenium/administration_tasks.t +++ b/t/db_dependent/selenium/administration_tasks.t @@ -198,6 +198,17 @@ SKIP: { $s->fill_form( { categorycode => $category_code, description => 'Test category', enrolmentperiod => 12, category_type => 'A' } ); $s->submit_form; + $s->click( + { + href => '/admin/categories.pl?op=add_form&categorycode=' . $category_code, + main_class => 'main container-fluid' + } + ); # Edit button + $s->submit_form; + + # Make sure the category is updated + $s->driver->find_element('//div[@class="dialog message"]'); + # Select "Show all" in the datatable "Show x entries" dropdown list to make sure our category is not hidden $s->show_all_entries('//div[@id="patron_categories_wrapper"]'); -- 2.39.5