Skip to content

Commit 03e2424

Browse files
author
Aaron Gustavo Nieves
committed
Add functional test for assertBrowserHistoryIsNotOnLastPage (8.1)
Covers the last untested Symfony-inherited browser-history assertion from module-symfony#240. Uses the public moveBack() step to position the browser history off the last page.
1 parent e04ffc3 commit 03e2424

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Functional/BrowserCest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ public function assertBrowserHistoryIsNotOnFirstPage(FunctionalTester $I)
2828
$I->assertBrowserHistoryIsNotOnFirstPage();
2929
}
3030

31+
public function assertBrowserHistoryIsNotOnLastPage(FunctionalTester $I)
32+
{
33+
$I->amOnPage('/');
34+
$I->amOnPage('/login');
35+
$I->moveBack();
36+
$I->assertBrowserHistoryIsNotOnLastPage();
37+
}
38+
3139
public function assertBrowserHistoryIsOnFirstPage(FunctionalTester $I)
3240
{
3341
$I->amOnPage('/');

0 commit comments

Comments
 (0)