Skip to content

Commit

Permalink
Update functional test to factor in the new user menu
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Mar 7, 2015
1 parent 02db7cd commit 5d3b199
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/functional/backend/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public function testSignInAndOut()
{
$this->open('backend');

$cssLogoutLink = '#layout-mainmenu .mainmenu-accountmenu > ul > li:first-child > a';

try {
$this->assertTitle('Administration Area');
$this->assertTrue($this->isElementPresent("name=login"));
Expand All @@ -28,16 +30,18 @@ public function testSignInAndOut()

try {
$this->assertTitle('Dashboard | October CMS');
$this->assertTrue($this->isElementPresent('css=a[data-original-title="Sign out"]'));
$this->assertTrue($this->isElementPresent('css='.$cssLogoutLink));
}
catch (PHPUnit_Framework_AssertionFailedError $e) {
array_push($this->verificationErrors, $e->toString());
}

$this->verifyText('css='.$cssLogoutLink, "Sign out");

/*
* Log out
*/
$this->click('css=a[data-original-title="Sign out"]');
$this->click('css='.$cssLogoutLink);
$this->waitForPageToLoad("30000");

try {
Expand Down

0 comments on commit 5d3b199

Please sign in to comment.