summaryrefslogtreecommitdiff
path: root/tests/unit/mainwindow/statusbar/test_progress.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/mainwindow/statusbar/test_progress.py')
-rw-r--r--tests/unit/mainwindow/statusbar/test_progress.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/mainwindow/statusbar/test_progress.py b/tests/unit/mainwindow/statusbar/test_progress.py
index 888ed5943..1cc3bf9af 100644
--- a/tests/unit/mainwindow/statusbar/test_progress.py
+++ b/tests/unit/mainwindow/statusbar/test_progress.py
@@ -69,6 +69,14 @@ def test_tab_changed(fake_web_tab, progress_widget, progress, load_status,
assert actual == expected
+def test_not_shown_when_disabled(progress_widget, fake_web_tab):
+ """The widget shouldn't get shown on an event when it's disabled."""
+ tab = fake_web_tab(progress=15, load_status=usertypes.LoadStatus.loading)
+ progress_widget.enabled = False
+ progress_widget.on_tab_changed(tab)
+ assert not progress_widget.isVisible()
+
+
def test_progress_affecting_statusbar_height(config_stub, fake_statusbar,
progress_widget):
"""Make sure the statusbar stays the same height when progress is shown.