mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Drop use of badge-* utility classes for newer replacements
- Keep the badge-{severity} classes as they are meant for convenience of mapping
severity to style.
- Match bootstrap colors to maintain consistency and contrast.
Tests:
- Visually confirm that all the changes effective.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
65165f4b42
commit
4d71e80b1e
13 files changed
+43
-51
No files matched your search
@@ -628,7 +628,7 @@ def networks_set_firewall_zone(browser, zone):
|
||||
device = browser.find_by_xpath(
|
||||
'//span[contains(@class, "connection-type-label") and '
|
||||
'contains(., "Ethernet") ]/../..'
|
||||
'//span[contains(@class, "badge-success") '
|
||||
'//span[contains(@class, "text-bg-success") '
|
||||
'and contains(@class, "connection-status-label")]/following::a').first
|
||||
network_id = device['href'].split('/')[-3]
|
||||
device.click()
|
||||
@@ -794,12 +794,12 @@ class BaseAppTests:
|
||||
session_browser.find_by_id('id_extra_actions_button').click()
|
||||
submit(session_browser, form_class='form-diagnostics-button')
|
||||
|
||||
warning_results = session_browser.find_by_css('.badge-warning')
|
||||
warning_results = session_browser.find_by_css('.text-bg-warning')
|
||||
if warning_results:
|
||||
warnings.warn(
|
||||
f'Diagnostics warnings for {self.app_name}: {warning_results}')
|
||||
|
||||
failure_results = session_browser.find_by_css('.badge-danger')
|
||||
failure_results = session_browser.find_by_css('.text-bg-danger')
|
||||
assert not failure_results
|
||||
|
||||
@pytest.mark.backups
|
||||
|
||||
Reference in new issue
Block a user