- // We need a payment processor
- $processorName = "Webtest Dummy" . substr(sha1(rand()), 0, 7);
+ // Use default payment processor
+ $processorName = 'Test Processor';
$paymentProcessorId = $this->webtestAddPaymentProcessor($processorName);
$this->openCiviPage('event/add', 'reset=1&action=add');
$paymentProcessorId = $this->webtestAddPaymentProcessor($processorName);
$this->openCiviPage('event/add', 'reset=1&action=add');
$this->assertElementContainsText('search-status', '1 Contact');
$this->click('css=div.crm-advanced_search_form-accordion div.crm-accordion-header');
$this->assertElementContainsText('search-status', '1 Contact');
$this->click('css=div.crm-advanced_search_form-accordion div.crm-accordion-header');
$this->assertElementContainsText('search-status', '2 Contact');
$this->select("task", "label=Add Contacts to Group");
$this->assertElementContainsText('search-status', '2 Contact');
$this->select("task", "label=Add Contacts to Group");
$this->waitForElementPresent("event_type_id");
$this->select2("event_type_id", "Conference");
$this->click("_qf_Advanced_refresh");
$this->waitForElementPresent("event_type_id");
$this->select2("event_type_id", "Conference");
$this->click("_qf_Advanced_refresh");