Skip to content

Commit

Permalink
Change the way of getting the current Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Jan 11, 2024
1 parent 4c22f3a commit 8ac8efb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const placeFactory = require('@factories/cht/contacts/place');
const personFactory = require('@factories/cht/contacts/person');
const userFactory = require('@factories/cht/users/users');
const path = require('path');
const aboutPage = require('@page-objects/default/about/about.wdio.page');
const upgradePage = require('@page-objects/upgrade/upgrade.wdio.page');

const places = placeFactory.generateHierarchy();
const healthCenter = places.get('health_center');
Expand All @@ -30,10 +30,8 @@ describe('Test Contact Search with Barcode Scanner', async () => {
});

it('Search should display correct results, clear search should display all contacts', async () => {
//Checking version
await commonPage.goToAboutPage();
await (await aboutPage.currentVersion()).waitForDisplayed();
const currentVersion = await (await aboutPage.currentVersion()).getText();
const currentVersion = await upgradePage.getCurrentVersion();
console.log('Current version ' + currentVersion);
await commonPage.goToPeople();
await searchPage.performBarcodeSearch(barcodeImagePath);
Expand Down

0 comments on commit 8ac8efb

Please sign in to comment.