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
+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()
})