From 7f29753b10c187188c21fde7632fe0023b99b6a7 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 --- 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.30.2