Skip to content

Commit

Permalink
chore: sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Nov 18, 2024
1 parent 40bee0a commit 87170ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion tests/e2e/default/reports/breadcrumbs.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ describe('Reports tab breadcrumbs', () => {
});

it('should not remove facility from breadcrumbs when offline user has many facilities associated', async () => {
await loginPage.login({ password: userWithManyPlacesPass, username: userWithManyPlaces.name, resetPassword: false });
await loginPage.login({
password: userWithManyPlacesPass,
username: userWithManyPlaces.name,
resetPassword: false
});
await commonElements.waitForPageLoaded();
await commonElements.goToReports();
await (await reportsPage.leftPanelSelectors.firstReport()).waitForDisplayed();
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/default/reports/sidebar-filter.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('Reports Sidebar Filter', () => {
});

it('should filter by form', async () => {
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword:false });
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword: false });
await commonPage.waitForPageLoaded();

await commonPage.goToReports();
Expand All @@ -132,7 +132,7 @@ describe('Reports Sidebar Filter', () => {
});

it('should filter by place', async () => {
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword:false });
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword: false });
await commonPage.waitForPageLoaded();

await commonPage.goToReports();
Expand All @@ -150,7 +150,7 @@ describe('Reports Sidebar Filter', () => {
});

it('should filter by status', async () => {
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword:false });
await loginPage.login({ username: districtHospitalUser.username, password: newPassword, resetPassword: false });
await commonPage.waitForPageLoaded();

await commonPage.goToReports();
Expand Down
6 changes: 5 additions & 1 deletion tests/e2e/default/tasks/tasks-breadcrumbs.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ describe('Tasks tab breadcrumbs', () => {
});

it('should not remove facility from breadcrumbs when offline user has many facilities associated', async () => {
await loginPage.login({ password: userWithManyPlacesPass, username: userWithManyPlaces.name, resetPassword: false });
await loginPage.login({
password: userWithManyPlacesPass,
username: userWithManyPlaces.name,
resetPassword: false
});
await commonPage.waitForPageLoaded();
await commonPage.goToTasks();
const infos = await tasksPage.getTasksListInfos(await tasksPage.getTasks());
Expand Down

0 comments on commit 87170ff

Please sign in to comment.