diff --git a/tests/controllers/InstallationControllerTest.php b/tests/controllers/InstallationControllerTest.php index 1ddce5f3643..e9fbe2b5c7b 100644 --- a/tests/controllers/InstallationControllerTest.php +++ b/tests/controllers/InstallationControllerTest.php @@ -125,13 +125,12 @@ public function testBasic() $adminLoginPwd->clear()->sendKeys($password); $confirmPwd->clear()->sendKeys($password); + // Confirm optional settings (admin password etc). self::findAndClick(WebDriverBy::cssSelector('input[type="submit"]'),10); // Go to administration. self::findAndClick(WebDriverBy::id('ls-administration'),10); - $this->assertTrue(true); - return; // Set debug=2 /* TODO: Can't write to config.php after installation. @@ -152,8 +151,11 @@ public function testBasic() $urlMan = \Yii::app()->urlManager; $urlMan->setUrlFormat($config['components']['urlManager']['urlFormat']); - // Login. + + // Login & assert. self::adminLogin($username, $password); + + } catch (NoSuchElementException $ex) { self::$testHelper->takeScreenshot(self::$webDriver, (new \ReflectionClass($this))->getShortName() . '_' . __FUNCTION__); $this->assertFalse(