Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 48... Línea 48...
48
     * @param TableNode $questiondata with data for filling the add question form
48
     * @param TableNode $questiondata with data for filling the add question form
49
     */
49
     */
50
    public function i_add_question_to_the_feedback_with($questiontype, TableNode $questiondata) {
50
    public function i_add_question_to_the_feedback_with($questiontype, TableNode $questiondata) {
Línea 51... Línea 51...
51
 
51
 
-
 
52
        $questiontype = $this->escape($questiontype);
52
        $questiontype = $this->escape($questiontype);
53
        $this->execute('behat_general::i_click_on', [get_string('add_item', 'mod_feedback'), 'link']);
Línea 53... Línea 54...
53
        $this->execute('behat_forms::i_select_from_the_singleselect', array($questiontype, 'typ'));
54
        $this->execute('behat_general::i_click_on', [$questiontype, 'link']);
54
 
55
 
Línea 55... Línea 56...
55
        // Wait again, for page to reloaded.
56
        // Wait again, for page to reloaded.
Línea 79... Línea 80...
79
     * @When /^I add a page break to the feedback$/
80
     * @When /^I add a page break to the feedback$/
80
     */
81
     */
81
    public function i_add_a_page_break_to_the_feedback() {
82
    public function i_add_a_page_break_to_the_feedback() {
Línea 82... Línea 83...
82
 
83
 
-
 
84
        $questiontype = $this->escape(get_string('add_pagebreak', 'feedback'));
83
        $questiontype = $this->escape(get_string('add_pagebreak', 'feedback'));
85
        $this->execute('behat_general::i_click_on', [get_string('add_item', 'mod_feedback'), 'link']);
Línea 84... Línea 86...
84
        $this->execute('behat_forms::i_select_from_the_singleselect', array($questiontype, 'typ'));
86
        $this->execute('behat_general::i_click_on', [$questiontype, 'link']);
85
 
87
 
86
        // Wait again, for page to reloaded.
88
        // Wait again, for page to reloaded.
Línea 224... Línea 226...
224
            }
226
            }
225
            // Get the next itemactual.
227
            // Get the next itemactual.
226
            $itemactual = next($dataactual);
228
            $itemactual = next($dataactual);
227
        }
229
        }
228
    }
230
    }
-
 
231
 
-
 
232
    /**
-
 
233
     * Return the list of partial named selectors
-
 
234
     *
-
 
235
     * @return behat_component_named_selector[]
-
 
236
     */
-
 
237
    public static function get_partial_named_selectors(): array {
-
 
238
        return [
-
 
239
            new behat_component_named_selector('Question', [
-
 
240
                ".//*[starts-with(@id, 'fitem_feedback_item_') or starts-with(@id, 'fgroup_feedback_item_')]" .
-
 
241
                "[.//*[contains(text(), %locator%)]]",
-
 
242
            ]),
-
 
243
        ];
-
 
244
    }
229
}
245
}