diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index d6dcf92de..f0a5dc2a4 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -79,4 +79,4 @@ after_pipeline: jobs: - name: Publish Results commands: - - test-results gen-pipeline-report \ No newline at end of file + - test-results gen-pipeline-report diff --git a/appium/tests/data/index.ts b/appium/tests/data/index.ts index 7490e429c..ddeeaa05f 100644 --- a/appium/tests/data/index.ts +++ b/appium/tests/data/index.ts @@ -56,10 +56,8 @@ export const CommonData = { }, updateRecipientPublicKey: { email: 'updating.key@example.test', - oldSignatureDate: 'Jan 12, 2022 at 11:16:58 AM',//time for CI runs - newSignatureDate: 'Jan 12, 2022 at 11:27:20 AM',//time for CI runs - // oldSignatureDate: 'Jan 12, 2022 at 9:16:58 PM', //- for local run - // newSignatureDate: 'Jan 12, 2022 at 9:27:20 PM', // for local run + oldSignatureDate: '12 Jan 2022, 07:16:58 PM',//in UTC + newSignatureDate: '12 Jan 2022, 07:27:20 PM',//in UTC oldFingerprints: '7E181662A26EC6748D6FDB1CC7C990C1A2EA78DD, 5C23518345A6595E81EBFEFCA71D94A76202B1D0', newFingerprints: '7E181662A26EC6748D6FDB1CC7C990C1A2EA78DD, 5C23518345A6595E81EBFEFCA71D94A76202B1D0, 40E4EE0325E38F717737889AC54F277266650211' }, diff --git a/appium/tests/screenobjects/public-key-details.screen.ts b/appium/tests/screenobjects/public-key-details.screen.ts index dde5fbb5d..a843901be 100644 --- a/appium/tests/screenobjects/public-key-details.screen.ts +++ b/appium/tests/screenobjects/public-key-details.screen.ts @@ -1,5 +1,6 @@ import BaseScreen from './base.screen'; import ElementHelper from "../helpers/ElementHelper"; +import moment from 'moment' const SELECTORS = { BACK_BTN: '~aid-back-button', @@ -86,9 +87,9 @@ class PublicKeyDetailsScreen extends BaseScreen { } checkSignatureDateValue = async (value: string) => { - const signatureValue = await this.signatureValue; - await signatureValue.waitForExist(); - expect(await signatureValue.getValue()).toEqual(value); + const signatureValue = await this.signatureValue.getValue(); + const convertedToUTC = moment(signatureValue.replace('at', '')).utcOffset(0).format('D MMM yyyy, hh:mm:ss A'); + expect(convertedToUTC).toEqual(value); } getLastFetchedDateValue = async () => {