From ab8d987dda7d05627ea4c8be0b3638d02d9177e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Tue, 20 Aug 2019 08:09:21 +0200 Subject: [PATCH] More precise target for button scope --- test/system/checks_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/system/checks_test.rb b/test/system/checks_test.rb index 4546c45..a7ee668 100644 --- a/test/system/checks_test.rb +++ b/test/system/checks_test.rb @@ -14,7 +14,7 @@ class ChecksTest < ApplicationSystemTestCase choose "domain" - fill_and_valid_new_check + create_new_check end test "create a predefined domain check" do @@ -22,7 +22,7 @@ class ChecksTest < ApplicationSystemTestCase refute page.has_css? "domain[kind]" - fill_and_valid_new_check + create_new_check end test "create a manual domain check" do @@ -49,7 +49,7 @@ class ChecksTest < ApplicationSystemTestCase refute page.has_css? "domain[kind]" - fill_and_valid_new_check + create_new_check end test "dettach a notification from a check" do @@ -277,7 +277,7 @@ class ChecksTest < ApplicationSystemTestCase # rubocop:disable Metrics/AbcSize # rubocop:disable Metrics/MethodLength - def fill_and_valid_new_check + def create_new_check() domain = "domain-test.fr" fill_in("check[domain]", with: domain) @@ -287,7 +287,7 @@ class ChecksTest < ApplicationSystemTestCase fill_in("check[notifications_attributes][0][recipient]", with: recipient) fill_in("check[notifications_attributes][0][interval]", with: 30) - click_button + click_button I18n.t("helpers.submit.check.create") assert_equal checks_path, page.current_path