From 3d52f0688780182114ed26ab654b721faff57967 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 31 May 2025 02:19:05 +0300 Subject: [PATCH] Fix intended asserts in notes layer tooltip test --- test/system/site_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/site_test.rb b/test/system/site_test.rb index ad8d2fc2f..911fe36f9 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -84,12 +84,12 @@ class SiteTest < ApplicationSystemTestCase find(".control-layers .control-button").click li = find(".layers-ui .overlay-layers li:first-child") - li.not_matches_css? ".disabled" + assert_not_matches_css li, ".disabled" li.hover # try to trigger disabled tooltip zoomout = find(".control-button.zoomout") zoomout.hover # un-hover the tooltip that's being tested zoomout.click(:shift) - li.matches_css? ".disabled" + assert_matches_css li, ".disabled" li.hover assert_selector ".tooltip", :text => "Zoom in" end -- 2.39.5