mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Update acceptance test for BS5.
This commit is contained in:
@@ -176,6 +176,7 @@
|
|||||||
'social' => 'social',
|
'social' => 'social',
|
||||||
'rss_menu' => 'rss_menu',
|
'rss_menu' => 'rss_menu',
|
||||||
'user' => 'user',
|
'user' => 'user',
|
||||||
|
'gallery'=>'gallery',
|
||||||
)]]></core>
|
)]]></core>
|
||||||
<core name="link_replace">0</core>
|
<core name="link_replace">0</core>
|
||||||
<core name="link_text"></core>
|
<core name="link_text"></core>
|
||||||
|
@@ -28,9 +28,10 @@ class InstallCest
|
|||||||
$this->checkAdminButtonWelcomeMessage($I);
|
$this->checkAdminButtonWelcomeMessage($I);
|
||||||
$this->testNoUpdatesRequired($I);
|
$this->testNoUpdatesRequired($I);
|
||||||
$this->checkTinyMceIsInstalled($I);
|
$this->checkTinyMceIsInstalled($I);
|
||||||
|
$this->checkBootstrap5Navigation($I);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
public function installBootstrap3(AcceptanceTester $I)
|
public function installBootstrap3(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
$I->wantTo("Install e107 with bootstrap3");
|
$I->wantTo("Install e107 with bootstrap3");
|
||||||
@@ -45,7 +46,7 @@ class InstallCest
|
|||||||
$I->see("United States");
|
$I->see("United States");
|
||||||
$I->see("Blue");
|
$I->see("Blue");
|
||||||
|
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public function installVoux(AcceptanceTester $I)
|
public function installVoux(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
@@ -180,6 +181,18 @@ class InstallCest
|
|||||||
$I->see("Paste as text by default");
|
$I->see("Paste as text by default");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function checkBootstrap5Navigation(AcceptanceTester $I)
|
||||||
|
{
|
||||||
|
$I->amOnPage('/article-1');
|
||||||
|
$I->see('Chapter 1','a');
|
||||||
|
|
||||||
|
$I->amOnPage('/gallery/gallery-1');
|
||||||
|
$I->see('horse');
|
||||||
|
|
||||||
|
$I->amOnPage('/terms-of-use');
|
||||||
|
$I->see('Terms of Use','.breadcrumb-item');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function checkAdminButtonWelcomeMessage(AcceptanceTester $I)
|
private function checkAdminButtonWelcomeMessage(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
|
@@ -16,7 +16,7 @@ USA',
|
|||||||
'hours' => '',
|
'hours' => '',
|
||||||
'message' => '',
|
'message' => '',
|
||||||
)]]></core>
|
)]]></core>
|
||||||
<core name="contact_visibility">253</core>
|
<core name="contact_visibility">253</core>
|
||||||
<core name="news_cats">0</core>
|
<core name="news_cats">0</core>
|
||||||
<core name="news_default_template">list</core>
|
<core name="news_default_template">list</core>
|
||||||
<core name="news_editauthor">255</core>
|
<core name="news_editauthor">255</core>
|
||||||
|
@@ -1781,10 +1781,11 @@ if($this->pdo == true)
|
|||||||
// Install Theme-required plugins
|
// Install Theme-required plugins
|
||||||
if(vartrue($this->previous_steps['install_plugins']) && ($themeInfo = $this->get_theme_xml($this->previous_steps['prefs']['sitetheme'])) && isset($themeInfo['plugins']['plugin']))
|
if(vartrue($this->previous_steps['install_plugins']) && ($themeInfo = $this->get_theme_xml($this->previous_steps['prefs']['sitetheme'])) && isset($themeInfo['plugins']['plugin']))
|
||||||
{
|
{
|
||||||
|
$themeName = $this->previous_steps['prefs']['sitetheme'];
|
||||||
foreach($themeInfo['plugins']['plugin'] as $k=>$plug)
|
foreach($themeInfo['plugins']['plugin'] as $k=>$plug)
|
||||||
{
|
{
|
||||||
$this->install_plugin($plug['@attributes']['name']);
|
$this->install_plugin($plug['@attributes']['name']);
|
||||||
installLog::add('Theme-related plugin installed: '.$plug['@attributes']['name']);
|
installLog::add('Theme-related ('.$themeName.') plugin installed: '.$plug['@attributes']['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user