Skip to content

Commit

Permalink
test: new attempt, throw it at CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Nov 11, 2024
1 parent 7f9862c commit 2348edb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# See https://github.com/cockpit-project/cockpit/blob/main/test/common/testlib.py
# "class Browser" and "class MachineCase" for the available API.

import json
import re
import sys
import time
Expand Down Expand Up @@ -1191,8 +1192,9 @@ class TestApplication(testlib.MachineCase):
# test recognition/deletion of multiple image tags
second_tag = "localhost/copybox:latest"
self.execute(False, f"podman tag localhost:5000/my-busybox {second_tag}")
# expand details, copybox takes predence over my-busybox
b.click("#containers-images tr:contains('copybox') td.pf-v5-c-table__toggle button")
tag_cmd = "podman inspect --format '{{json .RepoTags }}' localhost:5000/my-busybox"
repo_tags = json.loads(self.execute(False, tag_cmd))
b.click(f"#containers-images tr:contains('{repo_tags[0]}') td.pf-v5-c-table__toggle button")
b.wait_in_text("#containers-images tbody.pf-m-expanded tr .image-details", second_tag)
dialog1.deleteImage(True, another=second_tag)

Expand Down

0 comments on commit 2348edb

Please sign in to comment.