-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add smoke test * Run in workflow * Update rspec command to not run smoke tests automatically
- Loading branch information
1 parent
11ab571
commit 79b655f
Showing
6 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe "Start a claim", :smoke, type: :feature do | ||
# To test this locally you will need to add to your .env file: | ||
# | ||
# SMOKE_TEST_APP_HOST | ||
# BASIC_AUTH_USERNAME | ||
# BASIC_AUTH_PASSWORD | ||
|
||
scenario "User starts a claim" do | ||
visit url_with_basic_auth | ||
expect(page).to have_text("Teachers: claim back your student loan repayments") | ||
end | ||
|
||
def url_with_basic_auth | ||
host = ENV.fetch("SMOKE_TEST_APP_HOST") | ||
path = new_claim_path(Journeys::TeacherStudentLoanReimbursement::ROUTING_NAME) | ||
uri = URI.join(host, path) | ||
|
||
uri.user = ENV.fetch("BASIC_AUTH_USERNAME", nil) | ||
uri.password = ENV.fetch("BASIC_AUTH_PASSWORD", nil) | ||
uri.to_s | ||
end | ||
end |
This file contains 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