Overview

Namespaces

  • Azalea
    • Selenium
      • App
        • Charts
        • Components
        • Encounters
        • Home
        • Login
        • Main
        • Messages
        • Patients
        • Scheduler
      • Core
      • EHR
        • UI
          • Charts
          • Documents
          • Encounters
          • Home
          • Messaging
            • Folders
          • Patients
          • Payments
          • Precerts
          • Reports
          • Scheduler
          • Settings
            • General
              • Locations
              • Roles
              • Users
        • User
      • Login
        • UI
      • PHR
        • UI
        • User
      • Toolkit
        • Exception
        • Validation
    • Util
  • None
  • tests
    • integration
      • barebones
        • controllers
          • charts
          • patients
          • system
        • models
          • billing
          • encounters
          • examples
          • messaging
          • rcm
          • system
    • unit
      • barebones
        • lib
        • utilities
          • calculations

Classes

  • AddPatientTest
  • Azalea\Selenium\App\ApplicationTestCase
  • Azalea\Selenium\App\Charts\Chart
  • Azalea\Selenium\App\Charts\ChartAssessment
  • Azalea\Selenium\App\Charts\ChartDiagnosisCodes
  • Azalea\Selenium\App\Charts\ChartListControls
  • Azalea\Selenium\App\Charts\ChartObjective
  • Azalea\Selenium\App\Charts\ChartProcedureCodes
  • Azalea\Selenium\App\Charts\Charts
  • Azalea\Selenium\App\Charts\ChartSubjective
  • Azalea\Selenium\App\Components\CodeLookup
  • Azalea\Selenium\App\Components\CollectionGrid
  • Azalea\Selenium\App\Components\Popup
  • Azalea\Selenium\App\Customers
  • Azalea\Selenium\App\Encounters\Encounter
  • Azalea\Selenium\App\Encounters\EncounterDiagnosisCodes
  • Azalea\Selenium\App\Encounters\EncounterLedger
  • Azalea\Selenium\App\Encounters\EncounterProcedureCodes
  • Azalea\Selenium\App\Encounters\Encounters
  • Azalea\Selenium\App\Home\Home
  • Azalea\Selenium\App\Login\LoginPage
  • Azalea\Selenium\App\Main\MainSearch
  • Azalea\Selenium\App\Messages\Messages
  • Azalea\Selenium\App\Patients
  • Azalea\Selenium\App\Patients\Patient
  • Azalea\Selenium\App\Patients\PatientCharts
  • Azalea\Selenium\App\Patients\PatientEditDemographicsForm
  • Azalea\Selenium\App\Patients\PatientEncounters
  • Azalea\Selenium\App\Patients\PatientFaker
  • Azalea\Selenium\App\Patients\PatientList
  • Azalea\Selenium\App\Patients\PatientListFilters
  • Azalea\Selenium\App\Patients\Patients
  • Azalea\Selenium\App\Providers
  • Azalea\Selenium\App\Scheduler\AppointmentPopup
  • Azalea\Selenium\App\Scheduler\Scheduler
  • Azalea\Selenium\App\Users
  • Azalea\Selenium\Core\BaseTestCase
  • Azalea\Selenium\Core\Browser
  • Azalea\Selenium\Core\Page
  • Azalea\Selenium\Core\User
  • Azalea\Selenium\Core\View
  • Azalea\Selenium\Core\WebDriver
  • Azalea\Selenium\EHR\Application
  • Azalea\Selenium\EHR\EHR
  • Azalea\Selenium\EHR\EHRTestCase
  • Azalea\Selenium\EHR\EMR
  • Azalea\Selenium\EHR\PM
  • Azalea\Selenium\EHR\UI\Charts\ChartsList
  • Azalea\Selenium\EHR\UI\Charts\ChartsListRow
  • Azalea\Selenium\EHR\UI\Charts\ChartsListTab
  • Azalea\Selenium\EHR\UI\CheckboxGrid
  • Azalea\Selenium\EHR\UI\Documents\Documents
  • Azalea\Selenium\EHR\UI\Documents\DocumentsTab
  • Azalea\Selenium\EHR\UI\Encounters\Encounters
  • Azalea\Selenium\EHR\UI\Encounters\EncountersTab
  • Azalea\Selenium\EHR\UI\Grid
  • Azalea\Selenium\EHR\UI\GridRow
  • Azalea\Selenium\EHR\UI\Heading
  • Azalea\Selenium\EHR\UI\Home\Home
  • Azalea\Selenium\EHR\UI\Home\OfficeOverview
  • Azalea\Selenium\EHR\UI\LockScreen
  • Azalea\Selenium\EHR\UI\MainMenu
  • Azalea\Selenium\EHR\UI\MainSearch
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingAllMail
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingInbox
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingSentMail
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingStarred
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingTrashed
  • Azalea\Selenium\EHR\UI\Messaging\Messaging
  • Azalea\Selenium\EHR\UI\Messaging\MessagingCompose
  • Azalea\Selenium\EHR\UI\Messaging\MessagingFolder
  • Azalea\Selenium\EHR\UI\Messaging\MessagingMenu
  • Azalea\Selenium\EHR\UI\Messaging\MessagingReply
  • Azalea\Selenium\EHR\UI\Messaging\MessagingTab
  • Azalea\Selenium\EHR\UI\Messaging\MessagingViewMessage
  • Azalea\Selenium\EHR\UI\Module
  • Azalea\Selenium\EHR\UI\Notifications
  • Azalea\Selenium\EHR\UI\Patients\ChartsListRow
  • Azalea\Selenium\EHR\UI\Patients\ChartsTab
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergies
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergyEditPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergySearchPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientAppointments
  • Azalea\Selenium\EHR\UI\Patients\PatientAssembly
  • Azalea\Selenium\EHR\UI\Patients\PatientCharts
  • Azalea\Selenium\EHR\UI\Patients\PatientChartsList
  • Azalea\Selenium\EHR\UI\Patients\PatientComments
  • Azalea\Selenium\EHR\UI\Patients\PatientDashboard
  • Azalea\Selenium\EHR\UI\Patients\PatientDemographics
  • Azalea\Selenium\EHR\UI\Patients\PatientDemographicsPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientDocuments
  • Azalea\Selenium\EHR\UI\Patients\PatientDocumentsList
  • Azalea\Selenium\EHR\UI\Patients\PatientEncounters
  • Azalea\Selenium\EHR\UI\Patients\PatientEncountersAddPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientHandouts
  • Azalea\Selenium\EHR\UI\Patients\PatientInsurance
  • Azalea\Selenium\EHR\UI\Patients\PatientLabOrders
  • Azalea\Selenium\EHR\UI\Patients\PatientLabOrdersAddView
  • Azalea\Selenium\EHR\UI\Patients\PatientMedications
  • Azalea\Selenium\EHR\UI\Patients\PatientPortal
  • Azalea\Selenium\EHR\UI\Patients\PatientRecalls
  • Azalea\Selenium\EHR\UI\Patients\Patients
  • Azalea\Selenium\EHR\UI\Patients\PatientSearchPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientSection
  • Azalea\Selenium\EHR\UI\Patients\PatientSidebar
  • Azalea\Selenium\EHR\UI\Patients\PatientsList
  • Azalea\Selenium\EHR\UI\Patients\PatientsListRow
  • Azalea\Selenium\EHR\UI\Patients\PatientsListTab
  • Azalea\Selenium\EHR\UI\Patients\PatientsTab
  • Azalea\Selenium\EHR\UI\Patients\PatientTab
  • Azalea\Selenium\EHR\UI\Patients\PatientTasks
  • Azalea\Selenium\EHR\UI\Patients\PatientVitals
  • Azalea\Selenium\EHR\UI\Patients\PatientVitalsAddPopup
  • Azalea\Selenium\EHR\UI\Payments\EDIRemitsTab
  • Azalea\Selenium\EHR\UI\Payments\Payments
  • Azalea\Selenium\EHR\UI\Payments\PaymentsTab
  • Azalea\Selenium\EHR\UI\Payments\UnappliedPaymentsTab
  • Azalea\Selenium\EHR\UI\Popup
  • Azalea\Selenium\EHR\UI\PopupConfirm
  • Azalea\Selenium\EHR\UI\PopupError
  • Azalea\Selenium\EHR\UI\Precerts\Precerts
  • Azalea\Selenium\EHR\UI\Precerts\PrecertsTab
  • Azalea\Selenium\EHR\UI\Reports\AuditLogTab
  • Azalea\Selenium\EHR\UI\Reports\ClinicalQualityMeasuresTab
  • Azalea\Selenium\EHR\UI\Reports\ClinicalQualityMeasuresValueSetsTab
  • Azalea\Selenium\EHR\UI\Reports\MeaningfulUseTab
  • Azalea\Selenium\EHR\UI\Reports\PatientStatementsTab
  • Azalea\Selenium\EHR\UI\Reports\RecordsTab
  • Azalea\Selenium\EHR\UI\Reports\Reports
  • Azalea\Selenium\EHR\UI\Reports\ReportsQueueTab
  • Azalea\Selenium\EHR\UI\Reports\ReportsTab
  • Azalea\Selenium\EHR\UI\Reports\SystemStatisticsTab
  • Azalea\Selenium\EHR\UI\Scheduler\AppointmentsRequestsTab
  • Azalea\Selenium\EHR\UI\Scheduler\AppointmentsTab
  • Azalea\Selenium\EHR\UI\Scheduler\RecallsTab
  • Azalea\Selenium\EHR\UI\Scheduler\Scheduler
  • Azalea\Selenium\EHR\UI\Scheduler\SchedulerTab
  • Azalea\Selenium\EHR\UI\SelectDropdown
  • Azalea\Selenium\EHR\UI\Settings\BillingTab
  • Azalea\Selenium\EHR\UI\Settings\General\GroupsSection
  • Azalea\Selenium\EHR\UI\Settings\General\HandoutsSection
  • Azalea\Selenium\EHR\UI\Settings\General\InsurancesSection
  • Azalea\Selenium\EHR\UI\Settings\General\Locations\LocationRow
  • Azalea\Selenium\EHR\UI\Settings\General\Locations\LocationsList
  • Azalea\Selenium\EHR\UI\Settings\General\LocationsSection
  • Azalea\Selenium\EHR\UI\Settings\General\ProvidersSection
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RoleCreatePopup
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RoleRow
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RolesList
  • Azalea\Selenium\EHR\UI\Settings\General\RolesSection
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UserDetails
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UserRow
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UsersList
  • Azalea\Selenium\EHR\UI\Settings\General\UsersSection
  • Azalea\Selenium\EHR\UI\Settings\GeneralTab
  • Azalea\Selenium\EHR\UI\Settings\InventoryTab
  • Azalea\Selenium\EHR\UI\Settings\MedicalTab
  • Azalea\Selenium\EHR\UI\Settings\PatientTab
  • Azalea\Selenium\EHR\UI\Settings\SchedulerTab
  • Azalea\Selenium\EHR\UI\Settings\Settings
  • Azalea\Selenium\EHR\UI\TabContainer
  • Azalea\Selenium\EHR\UI\TabPanel
  • Azalea\Selenium\EHR\UI\UserAccountMenu
  • Azalea\Selenium\EHR\User\EHRAdminTestingUser
  • Azalea\Selenium\EHR\User\EMRAdminTestingUser
  • Azalea\Selenium\EHR\User\PMAdminTestingUser
  • Azalea\Selenium\Login\LoginPage
  • Azalea\Selenium\Login\LoginTestCase
  • Azalea\Selenium\Login\ResetPasswordPage
  • Azalea\Selenium\Login\UI\LoginForm
  • Azalea\Selenium\Login\UI\ResetPasswordForm
  • Azalea\Selenium\PHR\Application
  • Azalea\Selenium\PHR\PHR
  • Azalea\Selenium\PHR\PHRTestCase
  • Azalea\Selenium\PHR\UI\PopupError
  • Azalea\Selenium\PHR\User\PHRTestingUser
  • Azalea\Selenium\Toolkit\Dom
  • Azalea\Selenium\Toolkit\NestedHashMap
  • Azalea\Selenium\Toolkit\ResourceLoader
  • Azalea\Selenium\Toolkit\SauceLabsTestCase
  • Azalea\Selenium\Toolkit\SeleniumTestCase
  • Azalea\Selenium\Toolkit\TestCase
  • Azalea\Selenium\Toolkit\Validation\ElementExists
  • Azalea\Selenium\Toolkit\Validation\ElementHasText
  • Azalea\Selenium\Toolkit\Validation\ElementVisible
  • Azalea\Selenium\Toolkit\Validation\PageTitle
  • Azalea\Selenium\Toolkit\Validation\ValidationRule
  • Azalea\Selenium\Toolkit\Validation\ViewExists
  • Azalea\Selenium\Toolkit\Validation\WebDriverValidator
  • Azalea\Selenium\Toolkit\View
  • Azalea\Util\Config
  • Azalea\Util\Debug
  • Azalea_Sniffs_WhiteSpace_ScopeClosingBraceSniff
  • BaseModelTestCase
  • ChartAssessmentTest
  • ChartCustomFieldBehaviorsTest
  • ChartDiagnosisTest
  • ChartEncounterDiagnosisTest
  • ChartEncounterProceduresTest
  • ChartInventoryTest
  • ChartObjectiveTest
  • ChartProblemHistoryTest
  • ChartProceduresTest
  • ChartProviderAccessTest
  • ChartSigningTest
  • ChartsListProviderAccessTest
  • ChartSmokingStatusTest
  • ChartSubjectiveTest
  • ConfigTest
  • EncounterClaimsTest
  • EncounterDemographicsTest
  • EncounterDiagnosisTest
  • EncounterGuarantorTest
  • EncounterLedgerTest
  • EncounterProceduresTest
  • ExampleTestCase
  • MessagesLabelsTest
  • PageTest
  • PatentsListTest
  • PathManagerTest
  • PatientAccountSummaryTest
  • PatientBillingActionsTest
  • PatientCommentsTest
  • PatientDashboardAlertsTest
  • PatientDashboardLinkedPatientsTest
  • PatientDemographicsEditTest
  • PatientDocumentsTest
  • PatientPopupCommentsTest
  • PatientProviderAccessTest
  • PatientsListProviderAccessTest
  • PermissionsTest
  • PopupTest
  • SchedulerBlocksTest
  • SchedulerInsuranceBlocksTest
  • SimpePage
  • SimpleView
  • SimpleViewWithArgs
  • SimpleViewWithNoHash
  • TestCase
  • tests\integration\barebones\BarebonesConstants
  • tests\integration\barebones\BarebonesTestCase
  • tests\integration\barebones\controllers\charts\ChartsControllerTest
  • tests\integration\barebones\controllers\patients\PatientsPopupAlertsControllerTest
  • tests\integration\barebones\controllers\system\ClientsControllerTest
  • tests\integration\barebones\models\billing\ClientsFeeSchedulesMapModelTest
  • tests\integration\barebones\models\encounters\AppointmentModelTest
  • tests\integration\barebones\models\encounters\CollectionTest
  • tests\integration\barebones\models\encounters\ConcurrentCollectionTest
  • tests\integration\barebones\models\encounters\EncounterModelTest
  • tests\integration\barebones\models\encounters\EncountersIncompleteReasonModelTest
  • tests\integration\barebones\models\encounters\ModelQueryBuilderTest
  • tests\integration\barebones\models\examples\ExampleModelBasicsTest
  • tests\integration\barebones\models\examples\ExamplesGenericControllerTest
  • tests\integration\barebones\models\messaging\MessageModelTest
  • tests\integration\barebones\models\rcm\RCMStatsGeneralControllerTests
  • tests\integration\barebones\models\system\ClientModelTest
  • tests\unit\barebones\lib\BarebonesTestCase
  • tests\unit\barebones\utilities\ArraysTest
  • tests\unit\barebones\utilities\calculations\PovertyLineTest
  • tests\unit\barebones\utilities\MathTest
  • UrlManagerTest
  • VariantRulesTest
  • VariantsManagerTest
  • ViewTest
  • WebDriverMock

Exceptions

  • Azalea\Selenium\Toolkit\Exception\ElementNotFoundException
  • Azalea\Selenium\Toolkit\Exception\InvalidPageException
  • Azalea\Selenium\Toolkit\Exception\TimeoutException
  • Overview
  • Namespace
  • Class
  1: <?php
  2: use Azalea\Selenium\App\ApplicationTestCase;
  3: use Azalea\Selenium\App\Customers;
  4: use Azalea\Selenium\App\Patients;
  5: use Azalea\Selenium\App\Users;
  6: 
  7: class ChartCustomFieldBehaviorsTest extends ApplicationTestCase
  8: {
  9:     public function supportsCustomer($cus_id)
 10:     {
 11:         // Azalea EHR, Azalea EMR customers only
 12:         return (Customers::isEhrCustomer($cus_id) || Customers::isEmrCustomer($cus_id));
 13:     }
 14: 
 15:     /**
 16:      * Summary:
 17:      * A custom text field with default text pulls in with the
 18:      * default text.
 19:      */
 20:     public function testCustomTextFieldWithDefaultText()
 21:     {
 22:         $app = $this->login(Users::FELIX_MILLER, Users::PASSWORD);
 23: 
 24:         // Open Patient Record for Camila C. Fisher (QAA74) > Charts section.
 25:         $chartView = $app->patients->get(Patients::CAMILA_FISHER_ID)->charts->navigate()->addChart();
 26: 
 27:         // Remove any existing Subjective custom fields
 28:         $buttons = $chartView->subjective->removeAllCustomFields($app);
 29: 
 30:         // ***** Subjective Text Field
 31:         // Press the + Subjective Field button in the Subjective section
 32:         $chartView->subjective->addSubjectiveField();
 33: 
 34:         $chartView->popups->fields->verifyAndWait();
 35:         $chartView->popups->fields->grid->waitForRowAt(0);
 36: 
 37:         // Search for "Subjective Text Field"
 38:         $chartView->popups->fields->type("autoselect_search", "Subjective Text Field with Text");
 39:         $chartView->popups->fields->grid->waitForRowTextAt(0, "Subjective Text Field with Text");
 40: 
 41:         // Click on the "Subjective Text Field" row
 42:         $chartView->popups->fields->grid->waitForRowAt(0)->click();
 43: 
 44:         /**
 45:          * Expected outcome:
 46:          * a. Subjective Text Field with Text is added ot the chart.
 47:          * b. Subjective Text Field with Text has default text "This is some example text."
 48:          */
 49: 
 50:         $this->spinWait(function () use ($chartView) {
 51:             $chartView->subjective->fields->assertCanSee("Subjective Text Field with Text");
 52:             $chartView->subjective->fields->assertElementExists(".charts-HTMLInputView");
 53:             return true;
 54:         });
 55: 
 56:         $chartView->subjective->fields->assertCanSee("This is some example text.");
 57: 
 58:         // cancel the chart to clean up
 59:         $chartView->cancel();
 60:     }
 61: 
 62:     /**
 63:      * Summary:
 64:      * A custom text field with auto add set to true pulls in to a new chart.
 65:      */
 66:     public function testCustomTextFieldAutoAdded()
 67:     {
 68:         $app = $this->login(Users::FELIX_MILLER, Users::PASSWORD);
 69: 
 70:         // Open Patient Record for Camila C. Fisher (QAA74) > Charts section.
 71:         $chartView = $app->patients->get(Patients::CAMILA_FISHER_ID)->charts->navigate()->addChart();
 72: 
 73:         /**
 74:          * Expected outcome:
 75:          * a. Subjective Text Field Auto Add is in the chart.
 76:          */
 77: 
 78:         $this->spinWait(function () use ($chartView) {
 79:             $chartView->subjective->fields->assertCanSee("Subjective Text Field Auto Add");
 80:             $chartView->subjective->fields->assertElementExists(".charts-HTMLInputView");
 81:             return true;
 82:         });
 83: 
 84:         // cancel the chart to clean up
 85:         $chartView->cancel();
 86:     }
 87: 
 88:     /**
 89:      * Summary:
 90:      * A custom text field with and without default text copies over to the next
 91:      * chart the field only. A custom text field text copies the value over to
 92:      * the next chart.
 93:      */
 94:     public function testCustomTextFieldCopyFieldRules()
 95:     {
 96:         $app = $this->login(Users::FELIX_MILLER, Users::PASSWORD);
 97: 
 98:         // Open Patient Record for Thora L. Bernier (QAA266) > Charts section.
 99:         $chartView = $app->patients->get(Patients::THORA_BERNIER_ID)->charts->navigate()->addChart();
100: 
101:         // Make sure that the Date of Service and Place of Service fields are not empty.
102:         $chartView->setDateOfService(date("Ymd", time()))
103:             ->select("enc_spl_id", "9") // OFFICE (11)
104:             ->tab();
105: 
106:         // Remove any existing Subjective custom fields
107:         $chartView->subjective->removeAllCustomFields($app);
108: 
109:         // ***** Subjective Text Field Copy Field
110:         // Press the + Subjective Field button in the Subjective section
111:         $chartView->subjective->addSubjectiveField();
112: 
113:         $chartView->popups->fields->verifyAndWait();
114:         $chartView->popups->fields->grid->waitForRowAt(0);
115: 
116:         // Search for "Subjective Text Field with Text Copy Field"
117:         $chartView->popups->fields->type("autoselect_search", "Subjective Text Field Copy Field");
118:         $chartView->popups->fields->grid->waitForRowTextAt(0, "Subjective Text Field Copy Field");
119: 
120:         // Click on the "Subjective Text Field Copy Field" row
121:         $chartView->popups->fields->grid->waitForRowAt(0)->click();
122: 
123:         /**
124:          * Expected outcome:
125:          * a. Subjective Text Field Copy Field is added ot the chart.
126:          */
127: 
128:         $this->spinWait(function () use ($chartView) {
129:             $chartView->subjective->fields->assertCanSee("Subjective Text Field Copy Field");
130:             $chartView->subjective->fields->assertElementExists(".charts-HTMLInputView");
131:             return true;
132:         });
133: 
134:         // Click on the Edit button for the Subjective Text Field Copy Field
135:         $chartView->subjective->fields->press("Edit");
136: 
137:         // Type This is some text to not copy.
138:         $this->keys("This is some text to not copy.");
139: 
140:         // Click on the Save button
141:         $chartView->subjective->fields->press("Save");
142: 
143:         // ***** Subjective Text Field with Text Copy Field
144:         // Press the + Subjective Field button in the Subjective section
145:         $chartView->clearCache();
146:         $chartView->subjective->addSubjectiveField();
147: 
148:         $chartView->popups->fields->verifyAndWait();
149:         $chartView->popups->fields->grid->waitForRowAt(0);
150: 
151:         // Search for "Subjective Text Field with Text Copy Field"
152:         $chartView->popups->fields->type("autoselect_search", "Subjective Text Field with Text Copy Field");
153:         $chartView->popups->fields->grid->waitForRowTextAt(0, "Subjective Text Field with Text Copy Field");
154: 
155:         // Click on the "Subjective Text Field with Text Copy Field" row
156:         $chartView->popups->fields->grid->waitForRowAt(0)->click();
157: 
158:         /**
159:          * Expected outcome:
160:          * a. Subjective Text Field with Text Copy Field is added ot the chart.
161:          */
162: 
163:         $this->spinWait(function () use ($chartView) {
164:             $chartView->subjective->fields->assertCanSee("Subjective Text Field with Text Copy Field");
165:             return true;
166:         });
167: 
168:         // ***** Subjective Text Field Copy Field Value
169:         // Press the + Subjective Field button in the Subjective section
170:         $chartView->clearCache();
171:         $chartView->subjective->addSubjectiveField();
172: 
173:         $chartView->popups->fields->verifyAndWait();
174:         $chartView->popups->fields->grid->waitForRowAt(0);
175: 
176:         // Search for "Subjective Text Field Copy Field Value"
177:         $chartView->popups->fields->type("autoselect_search", "Subjective Text Field Copy Field Value");
178:         $chartView->popups->fields->grid->waitForRowTextAt(0, "Subjective Text Field Copy Field Value");
179: 
180:         // Click on the "Subjective Text Field Copy Field Value" row
181:         $chartView->popups->fields->grid->waitForRowAt(0)->click();
182: 
183:         /**
184:          * Expected outcome:
185:          * a. Subjective Text Field Copy Field Value is added ot the chart.
186:          */
187: 
188:         $this->spinWait(function () use ($chartView) {
189:             $chartView->subjective->fields->assertCanSee("Subjective Text Field Copy Field Value");
190:             $chartView->subjective->fields->assertElementExists(".charts-HTMLInputView");
191:             return true;
192:         });
193: 
194:         // Click on the Edit button for the Subjective Text Field Copy Field Value
195:         $chartView->subjective->fields->press("Edit", 2);
196: 
197:         // Type This is some text to copy.
198:         $this->keys("This is some text to copy.");
199: 
200:         // Click on the Save button
201:         $chartView->subjective->fields->press("Save");
202: 
203:         // save the encounter id for the chart
204:         $first_enc_id = $app->charts->getEncounterIdFromHash();
205: 
206:         // Save the Chart
207:         $chartView->save();
208: 
209:         // Open Patient Record for Thora L. Bernier (QAA266) > Charts section.
210:         $chartView = $app->patients->get(Patients::THORA_BERNIER_ID)->charts->navigate()->addChart();
211: 
212:         /**
213:          * Expected outcome:
214:          * a. Subjective Text Field Copy Field is present without any text.
215:          * b. Subjective Text Field with Text Copy Field is present with its default text.
216:          */
217:         $this->spinWait(function () use ($chartView) {
218:             $chartView->subjective->fields->assertCanSee("Subjective Text Field Copy Field");
219:             $chartView->subjective->fields->assertCanNotSee("This is some text to not copy.");
220:             $chartView->subjective->fields->assertCanSee("Subjective Text Field with Text Copy Field");
221:             $chartView->subjective->fields->assertCanSee("This is some default text for subjective text field copy field.");
222:             $chartView->subjective->fields->assertCanSee("Subjective Text Field Copy Field Value");
223:             $chartView->subjective->fields->assertCanSee("This is some text to copy.");
224:             return true;
225:         });
226: 
227:         // Save the Chart
228:         $chartView->save();
229:         $this->waitForAjax();
230: 
231:         // cancel the chart to clean up
232:         $chartView->cancel();
233:         $this->waitForAjax();
234: 
235:         // go back to the previous chart
236:         $chartView = $app->patients->get(Patients::THORA_BERNIER_ID)->charts->navigate()->edit($first_enc_id);
237: 
238:         // cancel the chart to clean up
239:         $chartView->cancel();
240:     }
241: }
242: 
243: ?>
API documentation generated by ApiGen