Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
35 | public function deleteAccount() |
||
36 | { |
||
37 | $deleteButton = $this->getDocument()->find('css', '.delete-action-form'); |
||
38 | |||
39 | if (null === $deleteButton) { |
||
40 | throw new ElementNotFoundException('Element not found.'); |
||
41 | } |
||
42 | |||
43 | $deleteButton->press(); |
||
44 | |||
45 | $confirmationModal = $this->getDocument()->find('css', '#confirmation-modal-confirm'); |
||
46 | $this->waitForModalToAppear($confirmationModal); |
||
47 | $confirmationModal->find('css', 'a:contains("Delete")')->press(); |
||
48 | } |
||
49 | |||
58 |