Update SeleniumBase Commander

This commit is contained in:
Michael Mintz 2023-03-09 14:06:05 -05:00
parent d640bdae8d
commit e1edf96e3a
1 changed files with 9 additions and 5 deletions

View File

@ -276,17 +276,21 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
chk.pack()
tk.Label(root, text="").pack()
plural = "s"
if len(files) == 1:
plural = ""
run_display = (
"Select from %s rows (%s file%s with %s tests): "
"Select from %s rows (%s files with %s tests): "
"(All tests will run if none are selected)"
% (len(tests), len(files), plural, len(solo_tests))
% (len(tests), len(files), len(solo_tests))
)
if len(solo_tests) == 1:
run_display = "Only ONE TEST was found and will be run:"
tests = solo_tests
elif len(files) == 1:
run_display = (
"Select from %s tests: "
"(All tests will run if none are selected)"
% (len(solo_tests))
)
tests = solo_tests
tk.Label(root, text=run_display, fg="blue").pack()
text_area = ScrolledText(
root, width=100, height=12, wrap="word", state=tk.DISABLED