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

Refactor system tests to pass in DevContainers #5271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colby-swandale
Copy link
Member

What's this about?

I'm currently on a quest to lift up our much aging test suite to one that aligns well to today's standards. The first step for me is to get the current test suit passing. I personally use DevContainers for my development, so I needed to make some configuration changes and move some system tests from rack-test to Capybara/Selenium.

The biggest change in this PR is namely the codebase assuming everything is running on localhost. I needed to make changes to our tests use the correct URL when inside a DevContainer.

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.88%. Comparing base (e5b0e6e) to head (e24db8b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5271   +/-   ##
=======================================
  Coverage   96.88%   96.88%           
=======================================
  Files         457      457           
  Lines        9576     9576           
=======================================
  Hits         9278     9278           
  Misses        298      298           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@@ -16,7 +16,7 @@ class ApiKeysTest < ApplicationSystemTestCase

assert_nil URI.parse(page.current_url).query

fill_in "api_key[name]", with: "test"
fill_in "api_key[name]", with: "test-api-key"
Copy link
Member

Choose a reason for hiding this comment

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

Is this (and other similar changes in testing) related to dev containers?

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

Successfully merging this pull request may close these issues.

2 participants