View | Details | Raw Unified | Return to bug 35362
Collapse All | Expand All

(-)a/t/db_dependent/selenium/patrons_search.t (-4 / +6 lines)
Lines 501-511 subtest 'Search patrons in modal' => sub { Link Here
501
            sprintf(
501
            sprintf(
502
                "%s %s %s (%s)", $patron->title, $patron->firstname,
502
                "%s %s %s (%s)", $patron->title, $patron->firstname,
503
                $patron->surname,        $patron->cardnumber
503
                $patron->surname,        $patron->cardnumber
504
            )
504
            ),
505
            'Patron preview modal has correct content'
505
        );
506
        );
506
507
507
        # Close the patron preview modal
508
        # Close the patron preview modal
508
        $driver->find_element('//div[@id="patron_preview_modal"]//input[@class="close"]')->click;
509
        $driver->find_element('//*[@id="patron_preview_modal"]/div[2]/fieldset/button')->click;
510
        
509
        $s->wait_for_element_hidden('//div[@id="patron_preview_modal"]');
511
        $s->wait_for_element_hidden('//div[@id="patron_preview_modal"]');
510
512
511
        # Select patron 2
513
        # Select patron 2
Lines 520-526 subtest 'Search patrons in modal' => sub { Link Here
520
        # => The guarantor block has the info of the selected patron
522
        # => The guarantor block has the info of the selected patron
521
        is(
523
        is(
522
            $driver->find_element('//a[@class="new_guarantor_link"]')->get_text(),
524
            $driver->find_element('//a[@class="new_guarantor_link"]')->get_text(),
523
            sprintf( "%s %s (%s)", $patron->firstname, $patron->surname, $patron->cardnumber )
525
            sprintf( "%s %s (%s)", $patron->firstname, $patron->surname, $patron->cardnumber ),
526
            'Guarantor block contains info of selected patron'
524
        );
527
        );
525
        is(
528
        is(
526
            $driver->find_element('//input[@class="new_guarantor_id noEnterSubmit"]')->get_value(),
529
            $driver->find_element('//input[@class="new_guarantor_id noEnterSubmit"]')->get_value(),
527
- 

Return to bug 35362