-
Notifications
You must be signed in to change notification settings - Fork 196
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
1c579ea
commit e97e1a8
Showing
8 changed files
with
125 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class TestProperties { | ||
|
||
DEFAULT_USERNAME = "admin"; | ||
DEFAULT_PASSWORD = "adminADMIN!"; | ||
|
||
constructor() { | ||
} | ||
|
||
getUsername() { | ||
return this.DEFAULT_USERNAME | ||
} | ||
|
||
getPassword() { | ||
return this.DEFAULT_PASSWORD | ||
} | ||
} | ||
|
||
export default TestProperties; |
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,24 @@ | ||
import LoginPage from "../pages/LoginPage"; | ||
|
||
let homePage = null; | ||
let loginPage = null; | ||
let patientPatient = null; | ||
|
||
before('login', () => { | ||
loginPage = new LoginPage(); | ||
loginPage.visit(); | ||
}); | ||
describe('Patient Search', function () { | ||
|
||
it('User Visits Home Page and goes to Add Add|Modify Patient Page', () => { | ||
homePage = loginPage.goToHomePage(); | ||
patientPatient = homePage.goToPatientEntry(); | ||
}); | ||
|
||
it('Add|Modify Patient page should appear with search field', function () { | ||
patientPatient.getPatientEntryPageTitle().should('contain.text', 'Add/Modify Patient'); | ||
|
||
}); | ||
|
||
|
||
}); |
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,17 @@ | ||
[ | ||
{ | ||
"username": "wrongUser", | ||
"password": "adminADMIN!", | ||
"correctPass": "false" | ||
}, | ||
{ | ||
"username": "itech", | ||
"password": "wrongPass", | ||
"correctPass": "false" | ||
}, | ||
{ | ||
"username": "admin", | ||
"password": "adminADMIN!", | ||
"correctPass": "true" | ||
} | ||
] |
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,17 @@ | ||
class PatientEntryPage { | ||
|
||
constructor() { | ||
} | ||
|
||
visit() { | ||
cy.visit('/PatientManagement'); | ||
} | ||
|
||
|
||
getPatientEntryPageTitle() { | ||
return cy.get('section > h3'); | ||
} | ||
|
||
} | ||
|
||
export default PatientEntryPage; |