X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContribute%2FContributionPageAddTest.php;h=09bd4a5879c8ff8106d9d0250a7e32d3768ca4c5;hb=6f2500ee7589360102875df4367568fe87485df6;hp=20eab9455b73c2d7a4678c3dee6fd5d5ccf3bc28;hpb=0e46df70e7f3719f71d83cc48507bd112c809a87;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php index 20eab9455b..09bd4a5879 100644 --- a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php +++ b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php @@ -1,7 +1,7 @@ webtestLogin(); @@ -86,7 +86,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { } // CRM-12510 Test copy contribution page - function testContributionPageCopy() { + public function testContributionPageCopy() { // open browser, login $this->webtestLogin(); @@ -144,7 +144,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { /** * Check CRM-7943 */ - function testContributionPageSeparatePayment() { + public function testContributionPageSeparatePayment() { // open browser, login $this->webtestLogin(); @@ -190,7 +190,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { /** * Check CRM-7949 */ - function testContributionPageSeparatePaymentPayLater() { + public function testContributionPageSeparatePaymentPayLater() { // open browser, login $this->webtestLogin(); @@ -225,7 +225,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { $this->type('first_name', $firstName); $this->type('last_name', $lastName); - $this->select('state_province-1',"value=1002"); + $this->select('state_province-1', "value=1002"); $this->clickLink('_qf_Main_upload-bottom', '_qf_Confirm_next-bottom'); $this->click('_qf_Confirm_next-bottom'); @@ -238,7 +238,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { $this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low'); $this->type('sort_name', "$lastName $firstName"); - $this->select('financial_type_id',"label=Member Dues"); + $this->select('financial_type_id', "label=Member Dues"); $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']"); $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom', FALSE); $expected = array( @@ -256,7 +256,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { $this->click("xpath=id('Search')/div[2]/div/div[1]"); $this->waitForElementPresent("financial_type_id"); $this->type("sort_name", $firstName); - $this->select('financial_type_id',"label=Donation"); + $this->select('financial_type_id', "label=Donation"); $this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']"); $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom', FALSE); @@ -287,7 +287,7 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { /** * CRM-12994 */ - function testContributionPageAddPremiumRequiredField() { + public function testContributionPageAddPremiumRequiredField() { // open browser, login $this->webtestLogin(); @@ -356,7 +356,9 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { // fill in Receipt details $this->type('thankyou_title', "Thank-you Page Title $hash"); + $this->click("xpath=//form[@id='ThankYou']/div[2]/table[1]/tbody/tr[2]/td[2]/div/a/span"); $this->fillRichTextField('thankyou_text', 'This is thankyou message for ' . $pageTitle, 'CKEditor'); + $this->click("xpath=//form[@id='ThankYou']/div[2]/table[1]/tbody/tr[3]/td[2]/div/a/span"); $this->fillRichTextField('thankyou_footer', 'This is thankyou footer message for ' . $pageTitle, 'CKEditor'); $this->click('is_email_receipt'); $this->waitForElementPresent('bcc_receipt'); @@ -438,4 +440,3 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { $this->assertTrue($this->isTextPresent($premiumSavedText)); } } -