From 25602e1dedc237492fd91a9058eab5b3d1ebe440 Mon Sep 17 00:00:00 2001 From: Akron Date: Tue, 19 Nov 2024 13:24:00 +0100 Subject: [PATCH] Stabilize tests on html-class attributes Change-Id: Ic6722253da4082e1e63322c315eb9669a6c0bb48 --- t/intro.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/intro.t b/t/intro.t index 4cffef97..bb1a4888 100644 --- a/t/intro.t +++ b/t/intro.t @@ -50,7 +50,8 @@ $t->get_ok('/') ->element_exists('meta[name="keywords"][content^="KorAP"]') ->element_exists('body[itemscope][itemtype="http://schema.org/WebApplication"]') ->element_exists_not('#koralQuery') - ->attr_is('aside', 'class', ' invisible off') + ->element_exists('aside.invisible') + ->element_exists('aside.off') ; $t->get_ok('/?cq=corpusSigle%3DGOE') @@ -64,7 +65,8 @@ $t->get_ok('/?cq=corpusSigle%3DGOE') ->element_exists('meta[name="keywords"][content^="KorAP"]') ->element_exists('body[itemscope][itemtype="http://schema.org/WebApplication"]') ->element_exists('#koralQuery') - ->attr_is('aside', 'class',' invisible off') + ->element_exists('aside.invisible') + ->element_exists('aside.off') ; $t->get_ok('/huhuhuhuhu')