This commit is contained in:
Diego Mello 2024-04-04 13:47:12 -03:00
parent 90133c11e1
commit f21cd899aa
3 changed files with 16 additions and 5 deletions

View File

@ -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);

View File

@ -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",

View File

@ -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"