tests: functional: storage: skip test List disks

Skip the test Scenario: List disks when inside a container

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Tiago Zaniquelli authored and Joseph Nuthalapati committed 2021-06-14 00:12:27 +05:30
1 parent dabaf53994
commit a02b0baad1
2 files changed
+13 -1

No files matched your search

@@ -2,6 +2,7 @@
"""
Functional, browser based tests for storage app.
"""
import pytest
from pytest_bdd import given, parsers, scenarios, then
@@ -17,7 +18,10 @@ def storage_root_disk_is_shown(session_browser):
@given(parsers.parse("I'm on the {name:w} page"))
def go_to_module(session_browser, name):
functional.nav_to_module(session_browser, name)
if functional.running_inside_container:
pytest.skip('Storage doesn\'t work inside a container')
else:
functional.nav_to_module(session_browser, name)
def _is_root_disk_shown(browser):