+--------------------------------------------------------------------+
*/
-
require_once 'CiviTest/CiviSeleniumTestCase.php';
class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase {
}
function testProfileGroupSubscription() {
- // This is the path where our testing install resides.
- // The rest of URL is defined in CiviSeleniumTestCase base class, in
- // class attributes.
- $this->open($this->sboxPath);
-
- // Logging in. Remember to wait for page to load. In most cases,
- // you can rely on 30000 as the value that allows your test to pass, however,
- // sometimes your test might fail because of this. In such cases, it's better to pick one element
- // somewhere at the end of page and use waitForElementPresent on it - this assures you, that whole
- // page contents loaded and you can continue your test execution.
$this->webtestLogin();
- // Go directly to the URL of the screen that you will be
- // testing (Add new profile ).
+ // Add new profile.
$this->openCiviPage('admin/uf/group', 'reset=1');
-
+
$this->click('newCiviCRMProfile-top');
$this->waitForElementPresent('_qf_Group_next-bottom');
// check advisory group ( may be we should create a separate group to test this)
$this->click("group_3");
-
+
$this->click('_qf_Edit_next');
$this->waitForPageToLoad($this->getTimeoutMsec());
}
}
-