-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dc2a0b
commit a6ca2de
Showing
9 changed files
with
183 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* global element, by */ | ||
|
||
// const FU = require('../../shared/FormUtils'); | ||
// const GU = require('../../shared/GridUtils'); | ||
|
||
function PatientMergePage() { | ||
const page = this; | ||
const gridId = 'patient-registry'; | ||
|
||
page.gridId = gridId; | ||
|
||
page.openMergeTool = async function openMergeTool() { | ||
element(by.css('[data-action="open-tools"]')).click(); | ||
element(by.css('[data-action="merge-patient"]')).click(); | ||
}; | ||
} | ||
|
||
module.exports = PatientMergePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const MergePatientPage = require('./registry.merge.page'); | ||
|
||
describe('Merge Patients', () => { | ||
|
||
const Page = new MergePatientPage(); | ||
|
||
it('successfully merge two selected patients into one', async () => { | ||
await Page.openMergeTool(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
const helpers = require('../shared/helpers'); | ||
const PatientRegistrySearch = require('./registry.search'); | ||
const PatientMerge = require('./registry.merge.spec'); | ||
|
||
// patient registry tests | ||
describe('Patient Registry', () => { | ||
describe.only('Patient Registry', () => { | ||
before(() => helpers.navigate('#/patients')); | ||
|
||
// groups patient search modal queries | ||
describe('Search', PatientRegistrySearch); | ||
|
||
// merge patients | ||
describe('Merge patients', PatientMerge); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters