@@ -98,12 +98,12 @@ public function installJoomla()
9898
9999 /**
100100 * Sets in Adminitrator->Global Configuration the Error reporting to Development
101+ *
102+ * @note: doAdminLogin() before
101103 */
102104 public function setErrorReportingtoDevelopment ()
103105 {
104106 $ I = $ this ;
105- $ I ->doAdministratorLogin ();
106-
107107 $ I ->amOnPage ('/administrator/index.php?option=com_config ' );
108108 $ I ->waitForText ('Global Configuration ' ,10 ,'.page-title ' );
109109 $ I ->click ('Server ' );
@@ -114,4 +114,20 @@ public function setErrorReportingtoDevelopment()
114114 $ I ->waitForText ('Global Configuration ' ,10 ,'.page-title ' );
115115 $ I ->see ('Configuration successfully saved. ' ,'#system-message-container ' );
116116 }
117+
118+ /**
119+ * Sets in Adminitrator->Global Configuration the Error reporting to Development
120+ *
121+ * @note: doAdminLogin() before
122+ */
123+ public function installExtensionFromDirectory ($ path )
124+ {
125+ $ I = $ this ;
126+ $ I ->amOnPage ('/administrator/index.php?option=com_installer ' );
127+ $ I ->click ('Install from Directory ' );
128+ $ I ->fillField ('#install_directory ' , $ path );
129+ // @todo: we need to find a better locator for the following Install button
130+ $ I ->click ("//input[contains(@onclick,'Joomla.submitbutton3()')] " ); // Install button
131+ $ I ->waitForText ('was successful ' , 10 , '#system-message-container ' );
132+ }
117133}
0 commit comments