+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->waitForAjaxContent();
- $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ if (!$this->isChecked("xpath=//ul[@id='contactEditBlocks']//li[@id='preference-10-contactedit']/span/input")) {
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ }
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->openCiviPage('contact/add', 'reset=1&ct=Individual');
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->waitForAjaxContent();
- $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ if (!$this->isChecked("xpath=//ul[@id='contactEditBlocks']//li[@id='preference-10-contactedit']/span/input")) {
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ }
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->waitForAjaxContent();
- $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ if (!$this->isChecked("xpath=//ul[@id='contactEditBlocks']//li[@id='preference-10-contactedit']/span/input")) {
+ $this->click("xpath=//ul[@id='contactEditBlocks']//li/span/label[text()='Open ID']");
+ }
$this->click("_qf_Display_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());