about summary refs log tree commit diff
path: root/__e2e__/tests/profile-screen.test.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-02-12 18:55:19 -0800
committerGitHub <noreply@github.com>2024-02-12 18:55:19 -0800
commit543e114877fcd00dd8c717a1116757a1a37d5aff (patch)
treef2a5b6b44622c53e4891208c00434acc9e90c9b1 /__e2e__/tests/profile-screen.test.ts
parentfad40dda97c4c4ecc4165524d0898494582ccac2 (diff)
downloadvoidsky-543e114877fcd00dd8c717a1116757a1a37d5aff.tar.zst
Update tests to get them passing again (#2853)
Diffstat (limited to '__e2e__/tests/profile-screen.test.ts')
-rw-r--r--__e2e__/tests/profile-screen.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/__e2e__/tests/profile-screen.test.ts b/__e2e__/tests/profile-screen.test.ts
index b4624e456..7ff43642f 100644
--- a/__e2e__/tests/profile-screen.test.ts
+++ b/__e2e__/tests/profile-screen.test.ts
@@ -147,7 +147,7 @@ describe('Profile screen', () => {
     const posts = by.id('feedItem-by-bob.test')
     await expect(
       element(by.id('likeCount').withAncestor(posts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
     await element(by.id('likeBtn').withAncestor(posts)).atIndex(0).tap()
     await expect(
       element(by.id('likeCount').withAncestor(posts)).atIndex(0),
@@ -155,14 +155,14 @@ describe('Profile screen', () => {
     await element(by.id('likeBtn').withAncestor(posts)).atIndex(0).tap()
     await expect(
       element(by.id('likeCount').withAncestor(posts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
   })
 
   it('Can repost posts', async () => {
     const posts = by.id('feedItem-by-bob.test')
     await expect(
       element(by.id('repostCount').withAncestor(posts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
     await element(by.id('repostBtn').withAncestor(posts)).atIndex(0).tap()
     await expect(element(by.id('repostModal'))).toBeVisible()
     await element(by.id('repostBtn').withAncestor(by.id('repostModal'))).tap()
@@ -176,7 +176,7 @@ describe('Profile screen', () => {
     await expect(element(by.id('repostModal'))).not.toBeVisible()
     await expect(
       element(by.id('repostCount').withAncestor(posts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
   })
 
   it('Can report posts', async () => {