|
@@ 381-386 (lines=6) @@
|
| 378 |
|
$ctr = 0; |
| 379 |
|
|
| 380 |
|
// results vary slightly due to sharding, hence check for a string instead of absolute results |
| 381 |
|
while ($ctr < 18) { |
| 382 |
|
$this->assertSelectorContains('div.searchResult a', $ctr, 'New Orleans, Southern Pacific'); |
| 383 |
|
$ctr++; |
| 384 |
|
$this->assertSelectorStartsWithOrEquals('div.searchResult a', $ctr, 'Similar'); |
| 385 |
|
$ctr++; |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
} |
| 389 |
|
|
|
@@ 406-411 (lines=6) @@
|
| 403 |
|
$ctr = 0; |
| 404 |
|
|
| 405 |
|
// results vary slightly due to sharding, hence check for a string instead of absolute results |
| 406 |
|
while ($ctr < 18) { |
| 407 |
|
$this->assertSelectorContains('div.searchResult a', $ctr, 'New'); |
| 408 |
|
$ctr++; |
| 409 |
|
$this->assertSelectorStartsWithOrEquals('div.searchResult a', $ctr, 'Similar'); |
| 410 |
|
$ctr++; |
| 411 |
|
} |
| 412 |
|
|
| 413 |
|
$this->assertSelectorStartsWithOrEquals('p.showingResultsForMsg', 0, 'Showing results for '); |
| 414 |
|
$this->assertSelectorStartsWithOrEquals('p.showingResultsForMsg a', 0, 'New '); |