about summary refs log tree commit diff
path: root/__e2e__
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-09-22 17:49:41 -0700
committerGitHub <noreply@github.com>2023-09-22 17:49:41 -0700
commit150fe421d6b694fefd89c0374d0f29051940cc17 (patch)
treeb850947e4837475cf0974ac386eb5810154854fc /__e2e__
parent41b53ca37b7eec328e72aabe6bb99b2c6cc367b7 (diff)
downloadvoidsky-150fe421d6b694fefd89c0374d0f29051940cc17.tar.zst
Fixes to tests (#1518)
Diffstat (limited to '__e2e__')
-rw-r--r--__e2e__/tests/create-account.test.ts2
-rw-r--r--__e2e__/tests/invite-codes.test.ts (renamed from __e2e__/tests/invite-codes.test-skip.ts)16
-rw-r--r--__e2e__/tests/profile-screen.test.ts2
3 files changed, 12 insertions, 8 deletions
diff --git a/__e2e__/tests/create-account.test.ts b/__e2e__/tests/create-account.test.ts
index f6ab0a498..283eda341 100644
--- a/__e2e__/tests/create-account.test.ts
+++ b/__e2e__/tests/create-account.test.ts
@@ -29,6 +29,8 @@ describe('Create account', () => {
     await element(by.id('continueBtn')).tap()
     await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible()
     await element(by.id('continueBtn')).tap()
+    await expect(element(by.id('recommendedFollowsOnboarding'))).toBeVisible()
+    await element(by.id('continueBtn')).tap()
     await expect(element(by.id('homeScreen'))).toBeVisible()
   })
 })
diff --git a/__e2e__/tests/invite-codes.test-skip.ts b/__e2e__/tests/invite-codes.test.ts
index f5d2bafb3..124c1af90 100644
--- a/__e2e__/tests/invite-codes.test-skip.ts
+++ b/__e2e__/tests/invite-codes.test.ts
@@ -18,16 +18,12 @@ describe('invite-codes', () => {
   it('I can fetch invite codes', async () => {
     await expect(element(by.id('signInButton'))).toBeVisible()
     await loginAsAlice()
-    await element(by.id('viewHeaderDrawerBtn')).tap()
-    await expect(element(by.id('drawer'))).toBeVisible()
-    await element(by.id('menuItemInviteCodes')).tap()
+    await element(by.id('e2eOpenInviteCodesModal')).tap()
     await expect(element(by.id('inviteCodesModal'))).toBeVisible()
     const attrs = await element(by.id('inviteCode-0-code')).getAttributes()
     inviteCode = attrs.text
     await element(by.id('closeBtn')).tap()
-    await element(by.id('viewHeaderDrawerBtn')).tap()
-    await element(by.id('menuItemButton-Settings')).tap()
-    await element(by.id('signOutBtn')).tap()
+    await element(by.id('e2eSignOut')).tap()
   })
 
   it('I can create a new account with the invite code', async () => {
@@ -51,12 +47,18 @@ describe('invite-codes', () => {
     await element(by.id('continueBtn')).tap()
     await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible()
     await element(by.id('continueBtn')).tap()
+    await expect(element(by.id('recommendedFollowsOnboarding'))).toBeVisible()
+    await element(by.id('continueBtn')).tap()
     await expect(element(by.id('homeScreen'))).toBeVisible()
   })
 
   it('I get a notification for the new user', async () => {
+    await element(by.id('e2eSignOut')).tap()
     await loginAsAlice()
-    await element(by.id('menuItemButton-Notifications')).tap()
+    await waitFor(element(by.id('homeScreen')))
+      .toBeVisible()
+      .withTimeout(5000)
+    await element(by.id('bottomBarNotificationsBtn')).tap()
     await expect(element(by.id('invitedUser'))).toBeVisible()
   })
 
diff --git a/__e2e__/tests/profile-screen.test.ts b/__e2e__/tests/profile-screen.test.ts
index 101aaf61c..82722f381 100644
--- a/__e2e__/tests/profile-screen.test.ts
+++ b/__e2e__/tests/profile-screen.test.ts
@@ -19,7 +19,7 @@ describe('Profile screen', () => {
   it('Can see feeds', async () => {
     await element(by.id('selector')).swipe('left')
     await element(by.id('selector-4')).tap()
-    await expect(element(by.id('feed-alices feed'))).toBeVisible()
+    await expect(element(by.id('feed-alice-favs'))).toBeVisible()
     await element(by.id('selector')).swipe('right')
     await element(by.id('selector-0')).tap()
   })