From f21cd899aa8f8f6c79e59dd0e0c40320d57d93f0 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 4 Apr 2024 13:47:12 -0300 Subject: [PATCH] detox --- e2e/tests/room/09-jumptomessage.spec.ts | 11 +++++++++++ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/e2e/tests/room/09-jumptomessage.spec.ts b/e2e/tests/room/09-jumptomessage.spec.ts index acb8149a8..320bfacc3 100644 --- a/e2e/tests/room/09-jumptomessage.spec.ts +++ b/e2e/tests/room/09-jumptomessage.spec.ts @@ -187,6 +187,7 @@ describe('Room', () => { .toExist() .withTimeout(5000); await element(by.id('room-view-messages')).atIndex(0).swipe('up', 'slow', 0.3); + // 104 await waitFor(element(by[textMatcher]('Load newer'))) .toExist() .withTimeout(5000); @@ -194,6 +195,7 @@ describe('Room', () => { await waitFor(element(by[textMatcher]('104'))) .toExist() .withTimeout(5000); + // 154 await waitFor(element(by[textMatcher]('Load newer'))) .toExist() .withTimeout(5000); @@ -201,6 +203,7 @@ describe('Room', () => { await waitFor(element(by[textMatcher]('154'))) .toExist() .withTimeout(5000); + // 202 await waitFor(element(by[textMatcher]('Load newer'))) .toExist() .withTimeout(5000); @@ -208,6 +211,14 @@ describe('Room', () => { await waitFor(element(by[textMatcher]('202'))) .toExist() .withTimeout(5000); + // 253 + await waitFor(element(by[textMatcher]('Load newer'))) + .toExist() + .withTimeout(5000); + await element(by[textMatcher]('Load newer')).atIndex(0).tap(); + await waitFor(element(by[textMatcher]('253'))) + .toExist() + .withTimeout(5000); await waitFor(element(by[textMatcher]('Load newer'))) .toNotExist() .withTimeout(5000); diff --git a/package.json b/package.json index b72b843b6..d21b2e2e6 100644 --- a/package.json +++ b/package.json @@ -196,7 +196,7 @@ "babel-loader": "^9.1.3", "babel-plugin-transform-remove-console": "^6.9.4", "codecov": "3.8.3", - "detox": "20.17.1", + "detox": "^20.20.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", diff --git a/yarn.lock b/yarn.lock index 49d82de02..2e135f606 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6759,10 +6759,10 @@ detect-newline@^3.0.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== -detox@20.17.1: - version "20.17.1" - resolved "https://registry.yarnpkg.com/detox/-/detox-20.17.1.tgz#55b9615cf5937819e1257fbf03fb2d2d58cf2acc" - integrity sha512-10pey6CR9D5GSloRkH60ObBGZ8VS11H7iuBNY7qq6jO2swiqqckHhPLRXfH9+WGR7l3vDnfU+G/gQs7JxQkJwA== +detox@^20.20.0: + version "20.20.0" + resolved "https://registry.yarnpkg.com/detox/-/detox-20.20.0.tgz#ab5d01d0c2121b5da37d16e643b621e7568a0b7e" + integrity sha512-8aiIcNrrjsrWCMGiDB22vGKYHLfDVgwcCMlFmEiJsVbPfhtjDbhGSfSvHqpyf6rb63GEPq/HxCkCy+NBkowXtQ== dependencies: ajv "^8.6.3" bunyan "^1.8.12"