UX: the ability to hide the admin header (#30175)

Some pages like new/edit item should not display admin header. New attribute called `@shouldDisplay` was added.

As a proof of concept, the flags page was updated.
This commit is contained in:
Krzysztof Kotlarek
2024-12-10 11:59:47 +11:00
committed by GitHub
parent d69edab611
commit 51a5fa036a
8 changed files with 183 additions and 133 deletions

View File

@ -6,6 +6,14 @@ module PageObjects
def has_tabs?(names)
expect(page.all(".admin-nav-submenu__tabs a").map(&:text)).to eq(names)
end
def visible?
has_css?(".admin-page-header")
end
def hidden?
has_no_css?(".admin-page-header")
end
end
end
end