Bugzilla – Attachment 137613 Details for
Bug 30717
Dates displayed in ISO format when editing items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30717: Fix selenium tests
Bug-30717-Fix-selenium-tests.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2022-07-12 09:32:38 UTC
(
hide
)
Description:
Bug 30717: Fix selenium tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-12 09:32:38 UTC
Size:
1.99 KB
patch
obsolete
>From 8ec092157fb7e410f8e988ad5ce065fbc2f0271d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Jul 2022 11:30:55 +0200 >Subject: [PATCH] Bug 30717: Fix selenium tests > > Error while executing command: element not interactable: Element <input id="tag_952_subfield_w_810691" class="input_marceditor items.replacementpricedate noEnterSubmit flatpickr-input" name="items.replacementpricedate" type="hidden"> is not reachable by keyboard at /usr/share/perl5/Selenium/Remote/Driver.pm line 411. >--- > t/db_dependent/selenium/basic_workflow.t | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t >index 58d0fa3c85d..de44740828c 100755 >--- a/t/db_dependent/selenium/basic_workflow.t >+++ b/t/db_dependent/selenium/basic_workflow.t >@@ -183,6 +183,7 @@ SKIP: { > my $id = $input->get_attribute('id'); > next unless $id =~ m|^tag_952_subfield|; > >+ my $effective_input = $input; > my $v; > > # FIXME This is based on default values >@@ -201,6 +202,7 @@ SKIP: { > $id =~ m|^tag_952_subfield_w| # replacementpricedate > ) { > $v = strftime("%Y-%m-%d", localtime); >+ $effective_input = $driver->find_element('//div[@id="subfield952w"]/input[@class="input_marceditor flatpickr-input"]'); > } > elsif ( > $id =~ m|^tag_952_subfield_d| # dateaccessioned >@@ -215,7 +217,7 @@ SKIP: { > else { > $v = 't_value_bib' . $biblionumber; > } >- $input->send_keys( $v ); >+ $effective_input->send_keys( $v ); > } > > $driver->find_element('//input[@name="add_submit"]')->click; >-- >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 30717
:
134781
|
134797
|
134947
|
134948
|
137613