From a06829cfbd52326d4b79e8ee550bdc70f1737b83 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 24 May 2021 14:29:57 +0200 Subject: [PATCH] Update keyword GUI test --- src/test/rustdoc-gui/search-result-keyword.goml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/rustdoc-gui/search-result-keyword.goml b/src/test/rustdoc-gui/search-result-keyword.goml index 23552c8ce89b..e7612d663717 100644 --- a/src/test/rustdoc-gui/search-result-keyword.goml +++ b/src/test/rustdoc-gui/search-result-keyword.goml @@ -5,7 +5,6 @@ wait-for: "#titles" // Note: The two next assert commands could be merged as one but readability would be // less good. // -// Checking that the CSS is displaying " (keyword)"... -assert: (".result-name span.keyword::after", {"content": '" (keyword)"'}) -// ... in italic. -assert: (".result-name span.keyword::after", {"font-style": "italic"}) +// Checking that the CSS is displaying " (keyword)" in italic. +assert: (".result-name span.keyword > i", "(keyword)") +assert: (".result-name span.keyword", "CookieMonster (keyword)")