Skip to content

Commit

Permalink
fix(tests): no async forEach in merge patients
Browse files Browse the repository at this point in the history
Removed the forEach() async function that caused spurious test
timeouts.  It's now a for...of loop.
  • Loading branch information
jniles committed Aug 6, 2019
1 parent b78ab2a commit c4b257a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/end-to-end/patient/registry.merge.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ function PatientMergePage() {
};

page.gridSelectRows = async function gridSelectRows(...lines) {
lines.forEach(async element => {
await GU.selectRow(gridId, element);
});
for (const line of lines) { // eslint-disable-line
await GU.selectRow(gridId, line); // eslint-disable-line
}
};

page.selectPatientToKeep = async function selectPatientToKeep(reference) {
Expand Down
1 change: 0 additions & 1 deletion test/end-to-end/patient/registry.merge.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ describe('Merge Patients', () => {
await Page.merge();
await components.notification.hasSuccess();
});

});

0 comments on commit c4b257a

Please sign in to comment.