diff --git a/tests/e2e/default/contacts/contact-details.wdio-spec.js b/tests/e2e/default/contacts/contact-details.wdio-spec.js index 546caa2bbb4..c205dd05012 100644 --- a/tests/e2e/default/contacts/contact-details.wdio-spec.js +++ b/tests/e2e/default/contacts/contact-details.wdio-spec.js @@ -113,11 +113,11 @@ describe('Contact details page.', () => { it('should show contact summary that has the full context for reports > 50' + ' validate that the pregnancy card is always displayed', async () => { - expect(await contactPage.pregnancyCardSelectors.pregnancyCard().isDisplayed()).to.be.true; - const pregnancyCardInfo = await contactPage.getPregnancyCardInfo(); - expect(pregnancyCardInfo.weeksPregnant).to.equal('12'); - expect(pregnancyCardInfo.risk).to.equal('High risk'); - }); + expect(await contactPage.pregnancyCardSelectors.pregnancyCard().isDisplayed()).to.be.true; + const pregnancyCardInfo = await contactPage.getPregnancyCardInfo(); + expect(pregnancyCardInfo.weeksPregnant).to.equal('12'); + expect(pregnancyCardInfo.risk).to.equal('High risk'); + }); it('should not show reports when permission is disabled', async () => { await updatePermissions(ROLE, [], ['can_view_reports']); diff --git a/tests/e2e/default/targets/target-aggregates.wdio-spec.js b/tests/e2e/default/targets/target-aggregates.wdio-spec.js index 4f16a9f94eb..56cd6e5c7eb 100644 --- a/tests/e2e/default/targets/target-aggregates.wdio-spec.js +++ b/tests/e2e/default/targets/target-aggregates.wdio-spec.js @@ -299,14 +299,14 @@ describe('Target aggregates', () => { it('should display only the targets sections and show the correct message ' + 'when target aggregates are disabled', async () => { - await browser.url('/#/analytics/target-aggregates'); + await browser.url('/#/analytics/target-aggregates'); - const emptySelection = await analyticsPage.noSelectedTarget(); - await (emptySelection).waitForDisplayed(); - await commonPage.waitForLoaderToDisappear(emptySelection); + const emptySelection = await analyticsPage.noSelectedTarget(); + await (emptySelection).waitForDisplayed(); + await commonPage.waitForLoaderToDisappear(emptySelection); - expect(await emptySelection.getText()).to.equal('Target aggregates are disabled'); - }); + expect(await emptySelection.getText()).to.equal('Target aggregates are disabled'); + }); it('should filter aggregates by place and period', async () => { const expectedTargets = targetAggregatesConfig.EXPECTED_TARGETS_NO_PROGRESS;