diff --git a/Tests/Acceptance/_support/Helper/BackendTester.php b/Tests/Acceptance/_support/Helper/BackendTester.php new file mode 100644 index 00000000..049cbb8f --- /dev/null +++ b/Tests/Acceptance/_support/Helper/BackendTester.php @@ -0,0 +1,15 @@ +amOnPage('/typo3/'); + $I->fillField('#t3-username', $username); + $I->fillField('#t3-password', $password); + $I->click('Login'); + $I->waitForElement('#typo3-cms-backend-backend-toolbaritems-systeminformationtoolbaritem'); + } +} diff --git a/Tests/Acceptance/acceptance.suite.yml b/Tests/Acceptance/acceptance.suite.yml index 396bddcc..cc31a024 100644 --- a/Tests/Acceptance/acceptance.suite.yml +++ b/Tests/Acceptance/acceptance.suite.yml @@ -15,4 +15,5 @@ modules: acceptInsecureCerts: true 'goog:chromeOptions': args: ["--no-sandbox", "--headless", "--disable-gpu", "--ignore-certificate-errors"] + - \In2code\Lux\Tests\Helper\BackendTester step_decorators: ~ diff --git a/Tests/Acceptance/acceptance/Backend/BackendLoginCest.php b/Tests/Acceptance/acceptance/Backend/BackendLoginCest.php new file mode 100644 index 00000000..d5d8a371 --- /dev/null +++ b/Tests/Acceptance/acceptance/Backend/BackendLoginCest.php @@ -0,0 +1,21 @@ +loginToBackend($I); + } + + public function loginToBackendSuccessfully(AcceptanceTester $I) + { + $I->see('LUX'); + $I->see('Analyse'); + $I->see('Leads'); + $I->see('Kampagnen'); + } +} diff --git a/Tests/Acceptance/acceptance/FirstCest.php b/Tests/Acceptance/acceptance/Frontend/SimpleHomepageCest.php similarity index 70% rename from Tests/Acceptance/acceptance/FirstCest.php rename to Tests/Acceptance/acceptance/Frontend/SimpleHomepageCest.php index b6991540..26a8337b 100644 --- a/Tests/Acceptance/acceptance/FirstCest.php +++ b/Tests/Acceptance/acceptance/Frontend/SimpleHomepageCest.php @@ -1,10 +1,10 @@