Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 18, 2024
1 parent ff02868 commit 3262b83
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 22 deletions.
8 changes: 4 additions & 4 deletions __e2e__/flows/curate-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ appId: xyz.blueskyweb.app
- tapOn: "Save"
- assertNotVisible:
id: "createOrEditListModal"
- tapOn: "About"
- tapOn: "People"
- assertVisible: "Good Ppl"
- assertVisible: "They good"

Expand Down Expand Up @@ -93,10 +93,10 @@ appId: xyz.blueskyweb.app
- tapOn: "Save"
- assertNotVisible:
id: "createOrEditListModal"
- tapOn: "About"
- tapOn: "People"
- assertVisible: "Good Ppl"
- assertVisible: "They good"
- tapOn: "About"
- tapOn: "People"

- tapOn:
label: "Adds users on curatelists from the list"
Expand Down Expand Up @@ -145,7 +145,7 @@ appId: xyz.blueskyweb.app
id: "e2eGotoLists"
- tapOn: "Good Ppl"

- tapOn: "About"
- tapOn: "People"
- assertVisible:
label: "Removes users on curatelists from the list"
id: "user-bob.test"
Expand Down
24 changes: 8 additions & 16 deletions __e2e__/flows/feed-reorder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ appId: xyz.blueskyweb.app

# Pin alice's feed
- extendedWaitUntil:
visible:
id: "viewHeaderDrawerBtn"
- tapOn:
id: "viewHeaderDrawerBtn"
visible: "Open drawer menu"
- tapOn: "Open drawer menu"
- tapOn:
id: "profileCardButton"
- tapOn:
Expand All @@ -32,8 +30,7 @@ appId: xyz.blueskyweb.app
text: "alice-favs"

# Set alice-favs first
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Open drawer menu"
- tapOn:
id: "menuItemButton-Feeds"
- tapOn:
Expand All @@ -44,8 +41,7 @@ appId: xyz.blueskyweb.app
- tapOn:
label: "Save button"
id: "saveChangesBtn"
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Go back"
- assertVisible:
id: "homeScreenFeedTabs-selector-0"
text: "alice-favs"
Expand All @@ -54,8 +50,7 @@ appId: xyz.blueskyweb.app
text: "Following"

# Set following first
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Open drawer menu"
- tapOn:
id: "menuItemButton-Feeds"
- tapOn:
Expand All @@ -66,8 +61,7 @@ appId: xyz.blueskyweb.app
- tapOn:
label: "Save button"
id: "saveChangesBtn"
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Go back"
- assertVisible:
id: "homeScreenFeedTabs-selector-0"
text: "Following"
Expand All @@ -76,8 +70,7 @@ appId: xyz.blueskyweb.app
text: "alice-favs"

# Remove following
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Open drawer menu"
- tapOn:
id: "menuItemButton-Feeds"
- tapOn:
Expand All @@ -88,8 +81,7 @@ appId: xyz.blueskyweb.app
- tapOn:
label: "Save button"
id: "saveChangesBtn"
- tapOn:
id: "viewHeaderDrawerBtn"
- tapOn: "Go back"
- assertVisible:
id: "homeScreenFeedTabs-selector-0"
text: "alice-favs"
Expand Down
4 changes: 3 additions & 1 deletion __e2e__/flows/home-screen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ appId: xyz.blueskyweb.app
- tapOn:
id: "bottomBarHomeBtn"
- tapOn:
id: "viewHeaderDrawerBtn"
id: "bottomBarHomeBtn"
- tapOn:
id: "bottomBarHomeBtn"
- assertNotVisible: "Feeds ✨"

- tapOn:
Expand Down
2 changes: 1 addition & 1 deletion __e2e__/flows/mod-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ appId: xyz.blueskyweb.app
id: "e2eGotoModeration"
- tapOn:
id: "moderationlistsBtn"
- tapOn: "New"
- tapOn: "New list"
- tapOn:
id: "editNameInput"
- inputText: "Muted Users"
Expand Down
2 changes: 2 additions & 0 deletions __e2e__/setupApp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ appId: xyz.blueskyweb.app
- waitForAnimationToEnd
- tapOn: "http://localhost:8081"
- waitForAnimationToEnd
- extendedWaitUntil:
visible: "Continue"
- swipe:
from: "Bluesky"
direction: DOWN
11 changes: 11 additions & 0 deletions src/lib/notifications/notifications.e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export function useNotificationsRegistration() {}

export function useRequestNotificationsPermission() {
return async (
_context: 'StartOnboarding' | 'AfterOnboarding' | 'Login' | 'Home',
) => {}
}

export async function decrementBadgeCount(_by: number) {}

export async function resetBadgeCount() {}

0 comments on commit 3262b83

Please sign in to comment.