Skip to content

Commit 172437c

Browse files
committed
Add disablestatistics
1 parent 28da15c commit 172437c

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/JoomlaBrowser.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,11 @@ public function installJoomla()
133133
$I->debug('I select dk-DK as installation language');
134134
// Select a random language to force reloading of the lang strings after selecting English
135135
$I->selectOptionInChosen('#jform_language', 'Danish (DK)');
136-
$I->wait(5);
137-
$I->waitForText('Generel konfiguration', 10, 'h3');
136+
$I->waitForText('Generel konfiguration', 20, 'h3');
138137
// Wait for chosen to render the field
139138
$I->debug('I select en-GB as installation language');
140139
$I->selectOptionInChosen('#jform_language', 'English (United Kingdom)');
141-
$I->wait(5);
142-
$I->waitForText('Main Configuration', 10, 'h3');
140+
$I->waitForText('Main Configuration', 20, 'h3');
143141
$this->debug('I fill Site Name');
144142
$I->fillField(['id' => 'jform_site_name'], 'Joomla CMS test');
145143
$this->debug('I fill Site Description');
@@ -858,4 +856,16 @@ public function verifyAvailableTabs($expectedTabs, $tabsLocator = ['xpath' => "/
858856
$I->assertEquals($expectedTabs, $actualArrayOfTabs, "Tab Labels do not match on edit view of" . $url);
859857
$I->debug('Verify the Tabs');
860858
}
859+
860+
/**
861+
* Hide the statistics info message
862+
*
863+
* @note: doAdminLogin() before
864+
*/
865+
public function disablestatistics()
866+
{
867+
$I = $this;
868+
$this->debug('I click on never');
869+
$I->click(['link' => 'Never']);
870+
}
861871
}

0 commit comments

Comments
 (0)