From ff4a15e06fcd111af420dcf02d52bdd64360c7ac Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Sun, 20 Oct 2024 09:13:10 -0400 Subject: [PATCH] more testing fix --- docker-compose.yml | 2 +- test/application_system_test_case.rb | 2 +- test/system/theses_test.rb | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4d69281..715410b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: - ${MAILCATCHER_HTTP:-4084}:1080 chrome: - image: selenium/standalone-chrome:96.0 + image: selenium/standalone-chrome:nightly ports: - ${VNC_HTTP:-7904}:7900 diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index a7c9b24..6a759de 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -25,7 +25,7 @@ def setup super - current_window.resize_to(1400, 1400) + current_window.resize_to(1920, 4000) user = FactoryGirl.create(:user) login_as(user, role: User::STAFF) diff --git a/test/system/theses_test.rb b/test/system/theses_test.rb index 797fe64..b30d605 100644 --- a/test/system/theses_test.rb +++ b/test/system/theses_test.rb @@ -91,10 +91,8 @@ class ThesesTest < ApplicationSystemTestCase assert has_link?(remove1) assert has_link?(remove2) - pp find_link(remove1).rect - - click_link(remove1) - + click_link_or_button(remove1) + assert_no_selector 'span', text: 'l1, f1' assert_no_link(remove1)