Skip to content

Commit

Permalink
Revert "fix eslint"
Browse files Browse the repository at this point in the history
This reverts commit 28feb4f.
  • Loading branch information
Maria Lorena Rodriguez Viruel committed Aug 20, 2024
1 parent 73de907 commit aa16c13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/default/contacts/contact-details.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
12 changes: 6 additions & 6 deletions tests/e2e/default/targets/target-aggregates.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aa16c13

Please sign in to comment.