Repository navigation
test: cover the tutorial, schedule, sessions, speakers, and account flows - #195
Draft
brandyscarney wants to merge 2 commits into
Draft
brandyscarney wants to merge 2 commits into
brandyscarney wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What This Does
Adds tests for the app's features: the tutorial, the schedule (search, favorites, and track filters), session and speaker details, login, signup, and the account page, and navigation to every page.
New Behavior
Changes
AppContextProvidertakes an optionalinitialState, so tests can render pages with preset state without starting the whole app. The app still starts from the default state.e2e/tutorial.spec.ts(replacese2e/app.spec.ts): the tutorial shows on the first visit; Skip opens the schedule; scrolling through the slides and tapping Continue opens the schedule; once it's done, reloading/goes straight to the schedule; the menu can show the tutorial again.e2e/schedule.spec.ts: sessions are grouped and sorted by time; search filters by name, clearing it restores the list, and no matches shows an empty state; Favorites shows its empty state, or only the favorited sessions; the filter excludes a track and including it again brings its sessions back; Reset clears every track.e2e/session-detail.spec.ts: the detail page shows the title, track, time, and location; favoriting and unfavoriting from the detail page; favoriting and removing with a swipe, including the toast and the confirm alert.e2e/speakers.spec.ts: speakers are listed with their sessions; a speaker opens their detail page; a session on a speaker's card opens its detail page.e2e/account.spec.ts: starts logged out; login requires a password; login switches the menu to Account/Logout and survives a reload; the Account page shows the username and changes it (still changed after a reload); logout is saved; signup logs the user in; Login links to Signup.e2e/navigation.spec.ts: the tab bar and the menu reach every page with its title; the map shows a marker per location, with tile requests blocked so it doesn't need the network; the Support form sends a message and refuses an empty one; the dark mode toggle switchesion-palette-dark.e2e/helpers.ts: shared locators and steps.src/data/selectors.test.ts: time sorting (including 12 am/pm), the track filter, search, favorites, finding sessions and speakers, each speaker's sessions, and the map center.src/data/state.test.ts: every reducer and the combined reducer.src/data/actions.test.ts: the load actions, the actions that save to storage, and the map locations with their fallback.src/data/dataApi.test.ts: loading the conference data from the real data files, and saving user data with Preferences stubbed.Menu,HomeOrTutorial,SchedulePage,SessionDetail, andSpeakerListtests render with preset state.src/testing/fixtures.tsandsrc/testing/render.tsx: test fixtures and a render helper (provider and router).Notes
--repeat-each=3), including at 8 workers.