1: <?php
2: namespace Azalea\Selenium\App\Home;
3:
4: use Azalea\Selenium\Toolkit\View;
5:
6: class Home extends View
7: {
8: /**
9: * Add a new patient via the Add Patient Popup, invoked through
10: * the Add Patient button in the main search view.
11: *
12: * @return \Azalea\Selenium\App\Patients\PatientPopup
13: */
14: public function addPatient()
15: {
16: $this->updateHash("/");
17: $this->search->verifyAndWait()->press("New Patient");
18: return $this->getView("patients/patient-popup.json")->verifyAndWait();
19: }
20: }
21:
22: ?>
23: