From a600f147b4e9045534d4cf66e207d230b2af954e Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Mon, 15 Jul 2019 14:16:55 +0100 Subject: Add Aria support to capybara --- spec/support/capybara.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/support/capybara.rb') diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 56ac208a025..60990879fe2 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -58,6 +58,7 @@ Capybara.javascript_driver = :chrome Capybara.default_max_wait_time = timeout Capybara.ignore_hidden_elements = true Capybara.default_normalize_ws = true +Capybara.enable_aria_label = true # Keep only the screenshots generated from the last failing test suite Capybara::Screenshot.prune_strategy = :keep_last_run -- cgit v1.2.1 From f0391c2517879bbb73702ccafd5e02bf25b40eec Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Thu, 25 Jul 2019 17:27:42 +1200 Subject: Add frozen_string_literal to spec/support Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758 --- spec/support/capybara.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/support/capybara.rb') diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 60990879fe2..8accc5c1df5 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # rubocop:disable Style/GlobalVars require 'capybara/rails' require 'capybara/rspec' -- cgit v1.2.1