1 | <?php |
||
10 | class WysiwygContext extends RawWysiwygContext |
||
11 | { |
||
12 | /** |
||
13 | * @param string $selector |
||
14 | * |
||
15 | * @Given /^(?:|I )work with "([^"]*)" WYSIWYG editor$/ |
||
16 | */ |
||
17 | public function workWithEditor($selector) |
||
21 | |||
22 | /** |
||
23 | * @param string $text |
||
24 | * @param string $selector |
||
25 | * |
||
26 | * @throws \Exception |
||
27 | * When editor was not found. |
||
28 | * |
||
29 | * @Given /^(?:|I )fill "([^"]*)" in (?:|"([^"]*)" )WYSIWYG editor$/ |
||
30 | */ |
||
31 | public function fill($text, $selector = '') |
||
35 | |||
36 | /** |
||
37 | * @param string $text |
||
38 | * @param string $selector |
||
39 | * |
||
40 | * @throws \Exception |
||
41 | * When editor was not found. |
||
42 | * |
||
43 | * @When /^(?:|I )type "([^"]*)" in (?:|"([^"]*)" )WYSIWYG editor$/ |
||
44 | */ |
||
45 | public function type($text, $selector = '') |
||
49 | |||
50 | /** |
||
51 | * @param string $condition |
||
52 | * @param string $text |
||
53 | * @param string $selector |
||
54 | * |
||
55 | * @throws \Exception |
||
56 | * When editor was not found. |
||
57 | * @throws \RuntimeException |
||
58 | * |
||
59 | * @Then /^(?:|I )should(| not) see "([^"]*)" in (?:|"([^"]*)" )WYSIWYG editor$/ |
||
60 | */ |
||
61 | public function read($condition, $text, $selector = '') |
||
84 | |||
85 | /** |
||
86 | * @param TableNode $fields |
||
87 | * | Editor locator | Value | |
||
88 | * |
||
89 | * @Then /^(?:|I )fill in following WYSIWYG editors:$/ |
||
90 | */ |
||
91 | public function fillInMultipleEditors(TableNode $fields) |
||
97 | |||
98 | /** |
||
99 | * @BeforeScenario @wysiwyg |
||
100 | */ |
||
101 | public function beforeScenario() |
||
105 | |||
106 | /** |
||
107 | * @AfterScenario @wysiwyg |
||
108 | */ |
||
109 | public function afterScenario() |
||
113 | } |
||
114 |