v0.48.2: the finished upload window hides Stop instead of greying it to blank
This commit is contained in:
@@ -474,3 +474,12 @@ def test_description_and_image_are_spaced_apart(tmp_path):
|
||||
gap = page[page.index(plan.description) + len(plan.description):
|
||||
page.index("placeholder.png")]
|
||||
assert "<br><br>" in gap
|
||||
|
||||
|
||||
def test_finished_window_hides_stop(qapp):
|
||||
from lintunes.gui.web_upload_progress import WebUploadProgress
|
||||
win = WebUploadProgress("Mix", f"{HOST}:/srv/mixes/mix")
|
||||
win.show()
|
||||
win.finish("done")
|
||||
assert win._stop.isHidden() and win._hide.text() == "Close"
|
||||
win.close()
|
||||
|
||||
Reference in New Issue
Block a user