Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase coverage and consistency of trip planner tests #2336

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anthonyshull
Copy link
Contributor

No ticket. I went through the Trip Planner and wrote tests for everything I think we should cover. Tests are focused on behavior and allow appearance testing to be done in the components.

@@ -265,7 +265,7 @@ defmodule DotcomWeb.Router do

scope "/preview", DotcomWeb do
import Phoenix.LiveView.Router
pipe_through([:browser, :browser_live, :basic_auth_readonly])
pipe_through([:browser, :browser_live])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📓 Just did this for convenience since basic auth won't be there in the near future. Will remove this from the PR before merge.

@@ -4,401 +4,249 @@ defmodule DotcomWeb.Live.TripPlannerTest do
import Mox
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📓 Rather than looking at the diff, I would review the file in its entirety since I completely rewrote it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant