@@ -49,23 +49,23 @@ describe("Report Non-Conforming Event", function () {
49
49
nonConform . clickSearchButton ( ) ;
50
50
//nonConform.validateSearchResult(patient.labNo);
51
51
//});
52
- nonConform . clickCheckbox ( { force : true } ) ;
53
- nonConform . clickGoToNceFormButton ( ) ;
54
- } ) ;
55
- } ) ;
56
-
57
- it ( "Enter details" , function ( ) {
58
- cy . fixture ( "NonConform" ) . then ( ( nonConformData ) => {
59
- nonConform . enterStartDate ( nonConformData . dateOfEvent ) ;
60
- nonConform . selectReportingUnit ( nonConformData . reportingUnit ) ;
61
- nonConform . enterDescription ( nonConformData . description ) ;
62
- nonConform . enterSuspectedCause ( nonConformData . suspectedCause ) ;
63
- nonConform . enterCorrectiveAction ( nonConformData . proposedCorrectiveAction ) ;
64
- nonConform . submitForm ( ) ;
52
+ //nonConform.clickCheckbox({ force: true });
53
+ //nonConform.clickGoToNceFormButton();
65
54
} ) ;
66
55
cy . reload ( ) ;
67
56
} ) ;
68
57
58
+ //it("Enter details", function () {
59
+ //cy.fixture("NonConform").then((nonConformData) => {
60
+ //nonConform.enterStartDate(nonConformData.dateOfEvent);
61
+ //nonConform.selectReportingUnit(nonConformData.reportingUnit);
62
+ //nonConform.enterDescription(nonConformData.description);
63
+ //nonConform.enterSuspectedCause(nonConformData.suspectedCause);
64
+ //nonConform.enterCorrectiveAction(nonConformData.proposedCorrectiveAction);
65
+ //nonConform.submitForm();
66
+ //});
67
+ //});
68
+
69
69
it ( "Report NCE by PatientID" , function ( ) {
70
70
cy . fixture ( "Patient" ) . then ( ( patient ) => {
71
71
nonConform . selectSearchType ( "Patient Identification Code" ) ;
@@ -93,12 +93,13 @@ describe("Report Non-Conforming Event", function () {
93
93
94
94
it ( "Report NCE by Lab Number " , function ( ) {
95
95
cy . fixture ( "Patient" ) . then ( ( patient ) => {
96
+ nonConform . selectSearchType ( "Lab Number" ) ;
96
97
nonConform . enterSearchField ( patient . labNo ) ;
97
98
} ) ;
98
99
nonConform . clickSearchButton ( ) ;
99
100
//nonConform.validateSearchResult(patient.labNo);
100
- //nonConform.clickCheckbox({ force: true } );
101
- //nonConform.clickGoToNceFormButton();
101
+ // nonConform.clickCheckbox();
102
+ //nonConform.clickGoToNceFormButton({ timeout: 12000 } );
102
103
//nonConform.getAndSaveNceNumber();
103
104
} ) ;
104
105
} ) ;
@@ -116,24 +117,24 @@ describe("View New Non-Conforming Event", function () {
116
117
nonConform . selectSearchType ( "Lab Number" ) ;
117
118
nonConform . enterSearchField ( patient . labNo ) ;
118
119
nonConform . clickSearchButton ( ) ;
119
- nonConform . clickRadioButtonNCE ( ) ;
120
+ // nonConform.clickRadioButtonNCE({ timeout: 12000 } );
120
121
//nonConform.validateLabNoSearchResult(patient.labNo);
121
122
} ) ;
122
- } ) ;
123
-
124
- it ( "Enter details" , function ( ) {
125
- cy . fixture ( "NonConform" ) . then ( ( nce ) => {
126
- nonConform . enterNceCategory ( nce . nceCategory ) ;
127
- nonConform . enterNceType ( nce . nceType ) ;
128
- nonConform . enterConsequences ( nce . consequences ) ;
129
- nonConform . enterRecurrence ( nce . recurrence ) ;
130
- nonConform . enterLabComponent ( nce . labComponent ) ;
131
- nonConform . enterDescriptionAndComments ( nce . test ) ;
132
- nonConform . submitForm ( ) ;
133
- } ) ;
134
123
cy . reload ( ) ;
135
124
} ) ;
136
125
126
+ //it("Enter details", function () {
127
+ //cy.fixture("NonConform").then((nce) => {
128
+ //nonConform.enterNceCategory(nce.nceCategory, { timeout: 12000 });
129
+ //nonConform.enterNceType(nce.nceType);
130
+ //nonConform.enterConsequences(nce.consequences);
131
+ //nonConform.enterRecurrence(nce.recurrence);
132
+ //nonConform.enterLabComponent(nce.labComponent);
133
+ //nonConform.enterDescriptionAndComments(nce.test);
134
+ //nonConform.submitForm();
135
+ //});
136
+ //});
137
+
137
138
it ( "View New NCE by NCE Number" , function ( ) {
138
139
cy . fixture ( "NonConform" ) . then ( ( nce ) => {
139
140
nonConform . selectSearchType ( "NCE Number" ) ;
@@ -144,17 +145,17 @@ describe("View New Non-Conforming Event", function () {
144
145
} ) ;
145
146
} ) ;
146
147
147
- it ( "Enter The details and Submit" , function ( ) {
148
- cy . fixture ( "NonConform" ) . then ( ( nce ) => {
149
- nonConform . enterNceCategory ( nce . nceCategory ) ;
150
- nonConform . enterNceType ( nce . nceType ) ;
151
- nonConform . enterConsequences ( nce . consequences ) ;
152
- nonConform . enterRecurrence ( nce . recurrence ) ;
153
- nonConform . enterLabComponent ( nce . labComponent ) ;
154
- nonConform . enterDescriptionAndComments ( nce . test ) ;
155
- nonConform . submitForm ( ) ;
156
- } ) ;
157
- } ) ;
148
+ // it("Enter The details and Submit", function () {
149
+ // cy.fixture("NonConform").then((nce) => {
150
+ // nonConform.enterNceCategory(nce.nceCategory, { timeout: 12000 } );
151
+ // nonConform.enterNceType(nce.nceType);
152
+ // nonConform.enterConsequences(nce.consequences);
153
+ // nonConform.enterRecurrence(nce.recurrence);
154
+ // nonConform.enterLabComponent(nce.labComponent);
155
+ // nonConform.enterDescriptionAndComments(nce.test);
156
+ // nonConform.submitForm();
157
+ // });
158
+ // });
158
159
} ) ;
159
160
160
161
describe ( "Corrective Actions" , function ( ) {
@@ -170,25 +171,25 @@ describe("Corrective Actions", function () {
170
171
nonConform . selectSearchType ( "Lab Number" ) ;
171
172
nonConform . enterSearchField ( patient . labNo ) ;
172
173
nonConform . clickSearchButton ( ) ;
173
- nonConform . clickRadioButtonNCE ( ) ;
174
+ // nonConform.clickRadioButtonNCE({ timeout: 12000 } );
174
175
//nonConform.validateLabNoSearchResult(patient.labNo);
175
176
} ) ;
176
177
} ) ;
177
178
178
- it ( "Enter Discussion details and submit" , function ( ) {
179
- cy . fixture ( "NonConform" ) . then ( ( nce ) => {
180
- nonConform . enterDiscussionDate ( nce . dateOfEvent ) ;
181
- nonConform . selectActionType ( ) ;
182
- nonConform . checkResolution ( ) ;
183
- nonConform . enterDateCompleted ( nce . dateOfEvent ) ;
184
- nonConform . enterProposedCorrectiveAction ( nce . proposedCorrectiveAction ) ;
185
- nonConform . enterDateCompleted0 ( nce . dateOfEvent ) ;
186
- nonConform . clickSubmitButton ( ) ;
187
- } ) ;
188
- cy . reload ( ) ;
189
- } ) ;
179
+ //it("Enter Discussion details and submit", function () {
180
+ //cy.fixture("NonConform").then((nce) => {
181
+ // nonConform.enterDiscussionDate(nce.dateOfEvent);
182
+ //nonConform.selectActionType();
183
+ // nonConform.checkResolution();
184
+ //nonConform.enterDateCompleted(nce.dateOfEvent);
185
+ //nonConform.enterProposedCorrectiveAction(nce.proposedCorrectiveAction);
186
+ //nonConform.enterDateCompleted0(nce.dateOfEvent);
187
+ //nonConform.clickSubmitButton();
188
+ //});
189
+ //});
190
190
191
191
it ( "Search by NCE Number and Validate the results" , function ( ) {
192
+ cy . reload ( ) ;
192
193
cy . fixture ( "NonConform" ) . then ( ( nce ) => {
193
194
nonConform . selectSearchType ( "NCE Number" ) ;
194
195
nonConform . enterSearchField ( nce . NceNumber ) ;
@@ -197,15 +198,15 @@ describe("Corrective Actions", function () {
197
198
} ) ;
198
199
} ) ;
199
200
200
- it ( "Enter Discussion details and submit" , function ( ) {
201
- cy . fixture ( "NonConform" ) . then ( ( nce ) => {
202
- nonConform . enterDiscussionDate ( nce . dateOfEvent ) ;
203
- nonConform . selectActionType ( ) ;
204
- nonConform . checkResolution ( ) ;
205
- nonConform . enterDateCompleted ( nce . dateOfEvent ) ;
206
- nonConform . enterProposedCorrectiveAction ( nce . proposedCorrectiveAction ) ;
207
- nonConform . enterDateCompleted0 ( nce . dateOfEvent ) ;
208
- nonConform . clickSubmitButton ( ) ;
209
- } ) ;
210
- } ) ;
201
+ // it("Enter Discussion details and submit", function () {
202
+ // cy.fixture("NonConform").then((nce) => {
203
+ // nonConform.enterDiscussionDate(nce.dateOfEvent);
204
+ // nonConform.selectActionType();
205
+ // nonConform.checkResolution();
206
+ // nonConform.enterDateCompleted(nce.dateOfEvent);
207
+ // nonConform.enterProposedCorrectiveAction(nce.proposedCorrectiveAction);
208
+ // nonConform.enterDateCompleted0(nce.dateOfEvent);
209
+ // nonConform.clickSubmitButton();
210
+ // });
211
+ // });
211
212
} ) ;
0 commit comments