Uncomment Grafana tests

This commit is contained in:
Dmitry 2026-06-07 10:05:06 +01:00 committed by GitHub
parent 1b89d47651
commit 55a8c28a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,16 +100,16 @@ let
# TODO: fix this. I tried a lot of stuff but can't figure out why it broke recently. # TODO: fix this. I tried a lot of stuff but can't figure out why it broke recently.
# For those reading this, it seems the call to Authelias's /userinfo endpoint returned a json response # For those reading this, it seems the call to Authelias's /userinfo endpoint returned a json response
# with the value Editor in the field "grafana_groups". So I don't know what's wrong. # with the value Editor in the field "grafana_groups". So I don't know what's wrong.
# { {
# username = "alice"; username = "alice";
# password = "AlicePassword"; password = "AlicePassword";
# nextPageExpect = [ nextPageExpect = [
# "page.get_by_role('button', name=re.compile('Accept')).click()" "page.get_by_role('button', name=re.compile('Accept')).click()"
# "expect(page.get_by_text(re.compile('[Ii]ncorrect'))).not_to_be_visible(timeout=10000)" "expect(page.get_by_text(re.compile('[Ii]ncorrect'))).not_to_be_visible(timeout=10000)"
# "expect(page.get_by_role('button', name=re.compile('Sign In'))).not_to_be_visible()" "expect(page.get_by_role('button', name=re.compile('Sign In'))).not_to_be_visible()"
# "expect(page.get_by_text('Welcome to Grafana')).to_be_visible()" "expect(page.get_by_text('Welcome to Grafana')).to_be_visible()"
# ]; ];
# } }
{ {
username = "bob"; username = "bob";
password = "NotBobPassword"; password = "NotBobPassword";
@ -119,16 +119,16 @@ let
} }
# TODO: fix this. I tried a lot of stuff but can't figure out why it broke recently. # TODO: fix this. I tried a lot of stuff but can't figure out why it broke recently.
# Same error as above. # Same error as above.
# { {
# username = "bob"; username = "bob";
# password = "BobPassword"; password = "BobPassword";
# nextPageExpect = [ nextPageExpect = [
# "page.get_by_role('button', name=re.compile('Accept')).click()" "page.get_by_role('button', name=re.compile('Accept')).click()"
# "expect(page.get_by_text(re.compile('[Ii]ncorrect'))).not_to_be_visible(timeout=10000)" "expect(page.get_by_text(re.compile('[Ii]ncorrect'))).not_to_be_visible(timeout=10000)"
# "expect(page.get_by_role('button', name=re.compile('Sign In'))).not_to_be_visible()" "expect(page.get_by_role('button', name=re.compile('Sign In'))).not_to_be_visible()"
# "expect(page.get_by_text('Welcome to Grafana')).to_be_visible()" "expect(page.get_by_text('Welcome to Grafana')).to_be_visible()"
# ]; ];
# } }
{ {
username = "charlie"; username = "charlie";
password = "NotCharliePassword"; password = "NotCharliePassword";
@ -138,14 +138,14 @@ let
} }
# TODO: fix this. This fails with: # TODO: fix this. This fails with:
# "If you're seeing this Grafana has failed to load its application files" # "If you're seeing this Grafana has failed to load its application files"
# { {
# username = "charlie"; username = "charlie";
# password = "CharliePassword"; password = "CharliePassword";
# nextPageExpect = [ nextPageExpect = [
# "page.get_by_role('button', name=re.compile('Accept')).click()" # I don't understand why this is not needed. Maybe it keeps somewhere the previous token? "page.get_by_role('button', name=re.compile('Accept')).click()" # I don't understand why this is not needed. Maybe it keeps somewhere the previous token?
# "expect(page.get_by_text(re.compile('[Ll]ogin failed'))).to_be_visible(timeout=10000)" "expect(page.get_by_text(re.compile('[Ll]ogin failed'))).to_be_visible(timeout=10000)"
# ]; ];
# } }
]; ];
}; };
}; };