Bug 33211: Fix failing test
authorNick Clemens <nick@bywatersolutions.com>
Mon, 13 Mar 2023 14:39:03 +0000 (14:39 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Mar 2023 14:39:47 +0000 (11:39 -0300)
This patch updates the selector to use the full class and find the text
type as well

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/selenium/basic_workflow.t

index 40434f3..fc6ab44 100755 (executable)
@@ -204,7 +204,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"]');
+                $effective_input = $driver->find_element('//div[@id="subfield952w"]/input[@type="text" and @class="input_marceditor items.replacementpricedate noEnterSubmit flatpickr-input"]');
             }
             elsif (
                 $id =~ m|^tag_952_subfield_y| # itemtype