Adds test for data deletion

This commit is contained in:
Sofiya Tepikin
2019-09-14 21:03:03 +02:00
parent 5d436630d3
commit e0091497e4
3 changed files with 17 additions and 1 deletions
+14
View File
@@ -108,6 +108,19 @@ describe('Symptom Data Input', () => {
console.log(
'This test a bit flaky. console.log apparently helps to fix it.'
)
await goBack()
await expect(element(by.text(expectedSymptomSummary))).toExist()
// Testing here additionally the deletion of data
await navigateToSymptomView(symptom)
await element(by.id('deleteIcon')).tap()
await element(by.text('YES, I AM SURE')).tap()
await expect(element(by.text(expectedSymptomSummary))).toNotExist()
await navigateToSymptomView(symptom)
await enterTemperature()
break
case 'note':
await enterNote()
@@ -127,4 +140,5 @@ describe('Symptom Data Input', () => {
await expect(element(by.text(expectedSymptomSummary))).toExist()
})
}
})