Refactors the header

This commit is contained in:
Sofiya Tepikin
2019-09-14 12:39:30 +02:00
parent 20595c6c3a
commit 5d436630d3
15 changed files with 175 additions and 195 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ describe('Symptom Data Input', () => {
await navigateToSymptomView(symptom)
let expectedSymptomSummary
await expect(element(by.id('symptomViewTitleName').and(by.text(symptom))))
await expect(element(by.id('headerTitle').and(by.text(symptom))))
.toBeVisible()
switch (symptom) {
+3 -3
View File
@@ -10,9 +10,9 @@ describe('Date', () => {
await element(by.text('add data for today')).tap()
await expect(
element(by.id('cycleDayTitleDate').and(by.text('today')))
element(by.id('headerTitle').and(by.text('today')))
).toBeVisible()
await element(by.id('previousDateButton')).tap()
await element(by.id('backButton')).tap()
await element(by.id('drip-icon-bleeding')).tap()
const today = LocalDate.now()
@@ -22,7 +22,7 @@ describe('Date', () => {
.toLowerCase()
await expect(
element(by.id('symptomViewTitleDate').and(by.text(yesterdayFormatted)))
element(by.id('headerSubtitle').and(by.text(yesterdayFormatted)))
).toBeVisible()
})
+3 -3
View File
@@ -1,6 +1,6 @@
const isOnPage = async (page, parentPage) => {
await expect(
element(by.id('pageTitle').and(by.text(page)))
element(by.id('headerTitle').and(by.text(page)))
).toBeVisible()
await expect(
element(
@@ -35,10 +35,10 @@ describe('Home Navigation', () => {
it('should navigate to today bleeding symptom', async () => {
await element(by.text('track your period')).tap()
await expect(
element(by.id('symptomViewTitleName').and(by.text('bleeding')))
element(by.id('headerTitle').and(by.text('bleeding')))
).toBeVisible()
await expect(
element(by.id('symptomViewTitleDate').and(by.text('today')))
element(by.id('headerSubtitle').and(by.text('today')))
).toBeVisible()
})