|
Lines 181-189
subtest 'Display circulation table correctly' => sub {
Link Here
|
| 181 |
my $tfoot_length = 0; |
181 |
my $tfoot_length = 0; |
| 182 |
$tfoot_length += $_->get_attribute('colspan') || 0 for @tfoot_td; |
182 |
$tfoot_length += $_->get_attribute('colspan') || 0 for @tfoot_td; |
| 183 |
|
183 |
|
| 184 |
my @tbody_td = $driver->find_elements('//table[@id="issues-table"]/tbody/tr/td'); |
184 |
my @tbody_td = $driver->find_elements('//table[@id="issues-table"]/tbody/tr[2]/td'); |
| 185 |
my $tbody_length = 0; |
185 |
my $tbody_length = 0; |
| 186 |
$tbody_length += $_->get_attribute('colspan') || 0 for @tbody_td; |
186 |
$tbody_length += 1 for @tbody_td; |
| 187 |
|
187 |
|
| 188 |
is( $thead_length == $tfoot_length && $tfoot_length == $tbody_length, |
188 |
is( $thead_length == $tfoot_length && $tfoot_length == $tbody_length, |
| 189 |
1, "Checkouts table must be correctly aligned" ) |
189 |
1, "Checkouts table must be correctly aligned" ) |
| 190 |
- |
|
|