-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd1ed11
commit ad61cc5
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace In2code\Lux\Tests\Helper; | ||
|
||
class BackendTester extends \Codeception\Module | ||
{ | ||
public function loginToBackend($I, $username = 'akellner', $password = 'akellner') | ||
{ | ||
$I->amOnPage('/typo3/'); | ||
$I->fillField('#t3-username', $username); | ||
$I->fillField('#t3-password', $password); | ||
$I->click('Login'); | ||
$I->waitForElement('#typo3-cms-backend-backend-toolbaritems-systeminformationtoolbaritem'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace In2code\Lux\Tests\Acceptance\Backend; | ||
|
||
use In2code\Lux\Tests\AcceptanceTester; | ||
|
||
class BackendLoginCest | ||
{ | ||
public function _before(AcceptanceTester $I) | ||
{ | ||
$I->loginToBackend($I); | ||
} | ||
|
||
public function loginToBackendSuccessfully(AcceptanceTester $I) | ||
{ | ||
$I->see('LUX'); | ||
$I->see('Analyse'); | ||
$I->see('Leads'); | ||
$I->see('Kampagnen'); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
Tests/Acceptance/acceptance/FirstCest.php → ...cceptance/Frontend/SimpleHomepageCest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters