MDL-59382 core_calendar: change behat step
This commit is contained in:
committed by
Ryan Wyllie
parent
aa0912258d
commit
81170930c2
@@ -63,6 +63,9 @@ class behat_calendar extends behat_base {
|
||||
$eventname = $data->getRow(1);
|
||||
$eventname = $eventname[1];
|
||||
|
||||
// Click to create new event.
|
||||
$this->execute("behat_general::i_wait_seconds", 1);
|
||||
|
||||
// Click to create new event.
|
||||
$this->execute("behat_general::i_click_on", array(get_string('newevent', 'calendar'), "button"));
|
||||
|
||||
@@ -70,11 +73,7 @@ class behat_calendar extends behat_base {
|
||||
$this->execute("behat_forms::i_set_the_following_fields_to_these_values", $data);
|
||||
|
||||
// Save event.
|
||||
$this->execute("behat_forms::press_button", get_string('savechanges'));
|
||||
|
||||
// Check if event is created. Being last step, don't need to wait or check for exceptions.
|
||||
$this->execute("behat_general::assert_page_contains_text", $eventname);
|
||||
|
||||
$this->execute("behat_forms::press_button", get_string('save'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user