$this->fireEvent($fieldName, 'focus');
if ($editor == 'CKEditor') {
if ($compressed) {
- $this->click("{$fieldName}-plain");
+ $this->click("xpath=//textarea[@id='{$fieldName}']/../div[1]");
}
$this->waitForElementPresent("xpath=//div[@id='cke_{$fieldName}']//iframe");
$this->runScript("CKEDITOR.instances['{$fieldName}'].setData('<p>{$text}</p>');");
if ($widget) {
// fill in step 8 (Widget Settings)
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->click('link=Widgets');
$this->waitForElementPresent('_qf_Widget_next-bottom');
if ($pcp) {
// fill in step 9 (Enable Personal Campaign Pages)
- $this->waitForPageToLoad($this->getTimeoutMsec());
$this->click('link=Personal Campaigns');
$this->waitForElementPresent('_qf_Contribute_next-bottom');
$this->click('pcp_active');
$this->waitForPageToLoad($this->getTimeoutMsec());
// Check confirmation alert.
- $this->assertTrue((bool) preg_match("/^Are you sure you want to Import now[\s\S]$/", $this->getConfirmation()));
+ $this->assertTrue((bool) preg_match("/^Backing up your database before importing is recommended, as there is no Undo for this. Are you sure you want to Import now[\s\S]$/", $this->getConfirmation()));
$this->chooseOkOnNextConfirmation();
$this->waitForPageToLoad($this->getTimeoutMsec());