Skip to content

Commit 194f9aa

Browse files
committed
Adding the Control Panel text
1 parent b1b83dc commit 194f9aa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/JoomlaBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function doAdministratorLogin($user = null, $password = null)
134134
$this->debug('I click Login button');
135135
$this->click($this->locator->adminLoginButton);
136136
$this->debug('I wait to see Administrator Control Panel');
137-
$this->waitForText('Control Panel', 4, $this->locator->controlPanelLocator);
137+
$this->waitForText($this->locator->adminControlPanelText, 4, $this->locator->controlPanelLocator);
138138
}
139139

140140
/**

src/Locators/Locators.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,12 @@ class Locators
121121
* @since 3.7.5
122122
*/
123123
public $adminToolbarButtonApply = ['class' => 'button-apply'];
124+
125+
/**
126+
* Admin Control Panel Text
127+
*
128+
* @var array
129+
* @since 3.7.5
130+
*/
131+
public $adminControlPanelText = 'Control Panel';
124132
}

0 commit comments

Comments
 (0)