Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ node_modules/
cypress/screenshots/
cypress/downloads/
cypress/fixtures/tmp_individuals.csv
.DS_Store
./*.DS_Store
./.DS_Store
27 changes: 27 additions & 0 deletions cypress/e2e/medical.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { ServicePage } from "../support/pages/servicePage";

describe('Complex Service workflow', () => {
let data;
const servicePage = new ServicePage();

before(() => {
cy.fixture('medicalService').then((fixture) => {
data = fixture;
});
});

beforeEach(() => {
cy.login();
})

afterEach(function () {
if (this.currentTest.state === 'failed') return;
servicePage.deleteService(data.service.code);
});

it('Complex service workflow', () => {
servicePage.addService(data.service);
servicePage.verifyService(data.service);
servicePage.updateService('Name', "Paracétamol");
})
})
32 changes: 32 additions & 0 deletions cypress/fixtures/medicalService.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"service": {
"code": "CP021",
"name": "Doliprane",
"packageType": "Flat fee bundle",
"type": "Curative",
"category": "Delivery",
"level": "Simple Service",
"careType": "In - Patient",
"frequency": "2",
"subServices": [
{
"name": "M4 OBG Mursupialisation",
"qty": "2"
},
{
"name": "M3 OBG Colpotomy",
"qty": "1"
}
],
"subItems": [
{
"name": "0001 ACETYLSALICYLIC ACID (ASPIRIN) TABS 300MG",
"qty": "3"
},
{
"name": "0003 AIRWAY GUEDEL RUBBER CHILD SIZE 67 MM",
"qty": "1"
}
]
}
}
Loading