Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run Ruby tests
run: bundle exec rspec
run: bundle exec rspec --profile
- name: Run JS tests
run: npm test
# Add or replace any other lints here
Expand Down
1 change: 1 addition & 0 deletions config/vite.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"autoBuild": true
},
"test": {
"host": "::1",
"port": 3037,
"autoBuild": true
}
Expand Down
2 changes: 1 addition & 1 deletion spec/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "i18n/tasks"

RSpec.describe I18n do
RSpec.describe I18n, :slow do
let(:i18n) { I18n::Tasks::BaseTask.new }
let(:missing_keys) { i18n.missing_keys }
let(:unused_keys) { i18n.unused_keys }
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/authentication_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def authenticate!
GDS::SSO::Config.auth_valid_for = Settings.auth_valid_for
end

it "re-authenticates after the configured time" do
it "re-authenticates after the configured time", :slow do
login_as_standard_user

get root_path
Expand Down
5 changes: 5 additions & 0 deletions spec/support/mark_feature_specs_as_slow.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RSpec.configure do |config|
config.define_derived_metadata(type: :feature) do |metadata|
metadata[:slow] ||= true
end
end
4 changes: 2 additions & 2 deletions spec/views/pages/selection/options.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
let(:selection_options) { (1..2999).to_a.map { |i| OpenStruct.new(name: i.to_s) } }

it "has an add another button" do
expect(rendered).to have_button(I18n.t("selection_options.add_another"))
expect(rendered).to have_button(text: I18n.t("selection_options.add_another"))
end

it "does not have inset text stating you cannot add more options" do
Expand All @@ -76,7 +76,7 @@
let(:selection_options) { (1..3000).to_a.map { |i| OpenStruct.new(name: i.to_s) } }

it "does not have an add another button" do
expect(rendered).not_to have_button(I18n.t("selection_options.add_another"))
expect(rendered).not_to have_button(text: I18n.t("selection_options.add_another"))
end

it "has inset text stating you cannot add more options" do
Expand Down