mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(i18n): chart series and the preset announcement in the page's language
The VM and host charts named their series in English (Usage, Usage (RSS), Read, Write, Inbound, Outbound) and the new-VM form announced an applied preset as "...new N GiB disk" in English on Turkish and Chinese pages. The texts now come from the templates: the stats tab and host overview give the series names (disk and NIC series reuse In, Out, Read, Write of the readings line), and each preset button carries its own announcement. "Usage" has the context "chart": zh translated it for secrets as "used by".
This commit is contained in:
parent
0218a54c87
commit
f92d443eec
12 changed files with 41 additions and 13 deletions
|
|
@ -204,6 +204,8 @@ class FlavorPresetTests(TestCase):
|
|||
[preset] = page.xpath(f"//button[contains(@class, 'preset')][@data-label='{self.flavor.label}']")
|
||||
self.assertEqual((preset.get("data-vcpu"), preset.get("data-memory"), preset.get("data-disk")), ("1", "512", "10"))
|
||||
self.assertEqual((preset.get("type"), preset.get("aria-pressed")), ("button", "false"))
|
||||
# what a screen reader hears when it is applied (create_instance.js), in the page's language
|
||||
self.assertEqual(preset.get("data-status"), "wvc-test: 1 vCPU, 512 MiB, new 10 GiB disk")
|
||||
|
||||
def test_the_flavor_dialog_sits_outside_the_form(self):
|
||||
_, response = render_create_page(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue