about summary refs log tree commit diff
path: root/__e2e__/tests/home-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/home-screen.test.ts
parentfad40dda97c4c4ecc4165524d0898494582ccac2 (diff)
downloadvoidsky-543e114877fcd00dd8c717a1116757a1a37d5aff.tar.zst
Update tests to get them passing again (#2853)
Diffstat (limited to '__e2e__/tests/home-screen.test.ts')
-rw-r--r--__e2e__/tests/home-screen.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/__e2e__/tests/home-screen.test.ts b/__e2e__/tests/home-screen.test.ts
index 79fca1e6a..ce7f1643b 100644
--- a/__e2e__/tests/home-screen.test.ts
+++ b/__e2e__/tests/home-screen.test.ts
@@ -36,7 +36,7 @@ describe('Home screen', () => {
     const carlaPosts = by.id('feedItem-by-carla.test')
     await expect(
       element(by.id('likeCount').withAncestor(carlaPosts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
     await element(by.id('likeBtn').withAncestor(carlaPosts)).atIndex(0).tap()
     await expect(
       element(by.id('likeCount').withAncestor(carlaPosts)).atIndex(0),
@@ -44,14 +44,14 @@ describe('Home screen', () => {
     await element(by.id('likeBtn').withAncestor(carlaPosts)).atIndex(0).tap()
     await expect(
       element(by.id('likeCount').withAncestor(carlaPosts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
   })
 
   it('Can repost posts', async () => {
     const carlaPosts = by.id('feedItem-by-carla.test')
     await expect(
       element(by.id('repostCount').withAncestor(carlaPosts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
     await element(by.id('repostBtn').withAncestor(carlaPosts)).atIndex(0).tap()
     await expect(element(by.id('repostModal'))).toBeVisible()
     await element(by.id('repostBtn').withAncestor(by.id('repostModal'))).tap()
@@ -65,7 +65,7 @@ describe('Home screen', () => {
     await expect(element(by.id('repostModal'))).not.toBeVisible()
     await expect(
       element(by.id('repostCount').withAncestor(carlaPosts)).atIndex(0),
-    ).toHaveText('0')
+    ).not.toExist()
   })
 
   it('Can report posts', async () => {