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

(-)a/t/db_dependent/selenium/regressions.t (-3 / +5 lines)
Lines 49-56 my $AudioAlerts_value = C4::Context->preference('AudioAlerts'); Link Here
49
C4::Context->set_preference('AudioAlerts', '1');
49
C4::Context->set_preference('AudioAlerts', '1');
50
50
51
our @cleanup;
51
our @cleanup;
52
subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub {
52
subtest 'OPAC - borrowernumber, branchcode and categorycode as html attributes' => sub {
53
    plan tests => 2;
53
    plan tests => 3;
54
54
55
    my $patron = $builder->build_object(
55
    my $patron = $builder->build_object(
56
        { class => 'Koha::Patrons', value => { flags => 1 } } );
56
        { class => 'Koha::Patrons', value => { flags => 1 } } );
Lines 65-70 subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub { Link Here
65
    is( $elt->get_attribute('data-borrowernumber'), $patron->borrowernumber,
65
    is( $elt->get_attribute('data-borrowernumber'), $patron->borrowernumber,
66
"Since bug 20921 span.loggedinusername should contain data-borrowernumber"
66
"Since bug 20921 span.loggedinusername should contain data-borrowernumber"
67
    );
67
    );
68
    is( $elt->get_attribute('data-categorycode'), $patron->categorycode,
69
"Since bug 26847 span.loggedinusername should contain data-categorycode"
70
    );
68
    push @cleanup, $patron, $patron->category, $patron->library;
71
    push @cleanup, $patron, $patron->category, $patron->library;
69
};
72
};
70
73
71
- 

Return to bug 26847