mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(instances): the Snapshots tab shows the VM's history as a line
The tab opened on "Snapshots · Active" above the form, and listed the snapshots below it as rows of "name · description · external, current · date" with a solid red Delete on each. Which snapshot the VM goes on from was the word "current" among the others. Now a line runs down the tab, newest first. On top is Now, the VM in its state's color, with the form that takes a snapshot there. Below it each snapshot is a point: its name and date, its description on a line of its own, its kind under them. The one the VM goes on from is filled and says so; the others are rings. Revert and Delete are small outlined buttons. Forms, confirmations and the rules that disable them are unchanged.
This commit is contained in:
parent
11f6a440c1
commit
457ef49cbf
7 changed files with 246 additions and 210 deletions
|
|
@ -219,7 +219,7 @@ class SnapshotTabTestCase(TestCase):
|
|||
|
||||
def test_one_list_newest_first_each_with_its_kind(self):
|
||||
doc = self.page(internal=[self.snap("i")], external=[self.snap("e", date=datetime(2026, 2, 1), memory=True)])
|
||||
rows = [" ".join(li.text_content().split()) for li in doc.xpath("//ul[@id='snapshot-list']/li")]
|
||||
rows = [" ".join(li.text_content().split()) for li in doc.xpath("//ol[@id='snapshot-list']/li")]
|
||||
self.assertEqual([row.split(" ")[0] for row in rows], ["e", "i"])
|
||||
self.assertIn("external, with memory", rows[0])
|
||||
self.assertIn("internal", rows[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue