From 8ac8efb05b1d160135b320047de7a0a40440aa63 Mon Sep 17 00:00:00 2001 From: Maria Lorena Rodriguez Viruel Date: Thu, 11 Jan 2024 13:52:48 -0300 Subject: [PATCH] Change the way of getting the current Version --- .../contacts/barcode-search-contacts.wdio-spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/e2e/default-mobile/contacts/barcode-search-contacts.wdio-spec.js b/tests/e2e/default-mobile/contacts/barcode-search-contacts.wdio-spec.js index e33bd7ef38e..ca75786dbce 100644 --- a/tests/e2e/default-mobile/contacts/barcode-search-contacts.wdio-spec.js +++ b/tests/e2e/default-mobile/contacts/barcode-search-contacts.wdio-spec.js @@ -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'); @@ -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);