From 2207d7aa353b93363c7746f0e7c597f93c5a4e2d Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 20 May 2019 12:23:33 -0700 Subject: [PATCH] Added check for the 'admin area' button in welcome message. --- tests/acceptance/0000_InstallCest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/acceptance/0000_InstallCest.php b/tests/acceptance/0000_InstallCest.php index 64e55370c..932c2cab8 100644 --- a/tests/acceptance/0000_InstallCest.php +++ b/tests/acceptance/0000_InstallCest.php @@ -25,6 +25,7 @@ class InstallCest { $I->wantTo("Install e107 with default settings"); $this->installe107($I); + $this->checkAdminButtonWelcomeMessage($I); $this->testNoUpdatesRequired($I); $this->checkTinyMceIsInstalled($I); @@ -34,6 +35,7 @@ class InstallCest { $I->wantTo("Install e107 with bootstrap3"); $this->installe107($I, array('sitetheme'=>'bootstrap3')); + $this->checkAdminButtonWelcomeMessage($I); $this->testNoUpdatesRequired($I); $this->checkTinyMceIsInstalled($I); @@ -49,6 +51,7 @@ class InstallCest { $I->wantTo("Install e107 with landingzero"); $this->installe107($I, array('sitetheme'=>'landingzero')); + $this->checkAdminButtonWelcomeMessage($I); $this->testNoUpdatesRequired($I); $this->checkTinyMceIsInstalled($I); @@ -170,8 +173,12 @@ class InstallCest $I->seeInSource('TinyMce4'); $I->amOnPage('/e107_plugins/tinymce4/admin_config.php'); $I->see("Paste as text by default"); + } + private function checkAdminButtonWelcomeMessage(AcceptanceTester $I) + { + $I->seeInSource('btn-large " href="e107_admin/admin.php">Go to Admin area'); }