Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
33 | public function pressDelete() |
||
34 | { |
||
35 | $this->getDocument()->pressButton('Delete'); |
||
36 | |||
37 | $modal = $this->getDocument()->find('css', $modalName = '#confirmation-modal'); |
||
38 | if (null === $modal) { |
||
39 | throw new ElementNotFoundException(sprintf('The element "%s" was not found on page.', $modalName)); |
||
40 | } |
||
41 | |||
42 | $confirmButton = $modal->find('css', 'a:contains(Delete)'); |
||
43 | |||
44 | $this->waitForModalToAppear($modal); |
||
45 | |||
46 | $confirmButton->press(); |
||
47 | } |
||
48 | |||
57 |