From f8590b0b21e2a0cf94ad912c31bd51b6f7f96116 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 5 Jun 2025 19:10:23 +0300 Subject: [PATCH] Remove Bootstrap icon class checks from profile tests --- test/system/user_company_test.rb | 10 +++++----- test/system/user_location_change_test.rb | 13 ++++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/test/system/user_company_test.rb b/test/system/user_company_test.rb index 161d77852..f730b2127 100644 --- a/test/system/user_company_test.rb +++ b/test/system/user_company_test.rb @@ -4,24 +4,24 @@ class UserCompanyTest < ApplicationSystemTestCase test "User can change company" do user = create(:user) sign_in_as(user) - company = "Test Company" visit user_path(user) within_content_heading do - assert_no_selector ".bi.bi-suitcase-lg-fill" + assert_no_text "Company" end visit profile_path within_content_body do - fill_in "Company", :with => company + fill_in "Company", :with => "Test Co." click_on "Update Profile" end - assert_text "Profile updated" + assert_text "Profile updated." + within_content_heading do - assert_text company + assert_text "Company Test Co." end end end diff --git a/test/system/user_location_change_test.rb b/test/system/user_location_change_test.rb index c66c6cb99..62a9013f7 100644 --- a/test/system/user_location_change_test.rb +++ b/test/system/user_location_change_test.rb @@ -12,17 +12,20 @@ class UserLocationChangeTest < ApplicationSystemTestCase visit user_path(user) within_content_heading do - assert_no_selector ".bi.bi-geo-alt-fill" + assert_no_text "Home location" end visit profile_path - fill_in "Home Location Name", :with => "Test Location" - click_on "Update Profile" + within_content_body do + fill_in "Home Location Name", :with => "Test Place" + click_on "Update Profile" + end + + assert_text "Profile updated." - assert_text "Profile updated" within_content_heading do - assert_text "Test Location" + assert_text "Home location Test Place" end end end -- 2.39.5