mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 03:00:23 +00:00
test: allow custom provider settings filter
This commit is contained in:
@@ -291,7 +291,8 @@ class TestProviderListFilter:
|
||||
"Settings → Providers panel. The filter must be 'filter(p=>p.configurable||p.is_oauth)'."
|
||||
)
|
||||
fixed_filter_idx = self.JS.find("filter(p=>p.configurable||p.is_oauth)")
|
||||
assert fixed_filter_idx != -1, (
|
||||
"The provider filter 'filter(p=>p.configurable||p.is_oauth)' is missing from panels.js. "
|
||||
extended_filter_idx = self.JS.find("filter(p=>p.configurable||p.is_oauth||p.is_custom)")
|
||||
assert fixed_filter_idx != -1 or extended_filter_idx != -1, (
|
||||
"The provider filter must include p.is_oauth in panels.js. "
|
||||
"OAuth providers will not appear in Settings → Providers."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user