diff --git a/tests/src/FunctionalJavascript/CustomFieldSubmissionTest.php b/tests/src/FunctionalJavascript/CustomFieldSubmissionTest.php index a48df245..6a82c18e 100644 --- a/tests/src/FunctionalJavascript/CustomFieldSubmissionTest.php +++ b/tests/src/FunctionalJavascript/CustomFieldSubmissionTest.php @@ -334,7 +334,7 @@ public function testDynamicCustomFields() { 'query' => ['reset' => 1, 'action' => 'update', 'gid' => 1, 'id' => $this->_customFields['color_checkboxes']] ])->toString(); $this->drupalGet($fieldURL); - $this->getSession()->getPage()->uncheckField(version_compare(\CRM_Core_BAO_Domain::version(), '5.75.alpha1', '<') ? 'Active?' : 'Active'); + $this->getSession()->getPage()->uncheckField('Active'); // $this->createScreenshot($this->htmlOutputDirectory . '/custom_field.png'); $this->getSession()->getPage()->pressButton('_qf_Field_done-bottom'); @@ -348,7 +348,7 @@ public function testDynamicCustomFields() { //Re-enable the field. $this->drupalGet($fieldURL); - $this->getSession()->getPage()->checkField(version_compare(\CRM_Core_BAO_Domain::version(), '5.75.alpha1', '<') ? 'Active?' : 'Active'); + $this->getSession()->getPage()->checkField('Active'); $this->getSession()->getPage()->pressButton('_qf_Field_done-bottom'); $this->assertPageNoErrorMessages();