Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions testsuite/tests/ui/devel/test_devel_sections.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test for developer portal sections"""

import backoff
import pytest
from packaging.version import Version # noqa # pylint: disable=unused-import

Expand All @@ -15,6 +16,12 @@
from testsuite.ui.views.common.foundation import NotFoundView
from testsuite.utils import blame

pytestmark = [
pytest.mark.issue("https://issues.redhat.com/browse/THREESCALE-9020"),
pytest.mark.issue("https://issues.redhat.com/browse/THREESCALE-836"),
pytest.mark.skipif(TESTED_VERSION < Version("2.14-dev"), reason="Requires 3scale >= 2.14"),
]


@pytest.fixture(scope="module")
def dev_portal_section(navigator, request, threescale):
Expand Down Expand Up @@ -67,9 +74,7 @@ def cleanup():
view.update([group_name])


@pytest.mark.issue("https://issues.redhat.com/browse/THREESCALE-9020")
@pytest.mark.issue("https://issues.redhat.com/browse/THREESCALE-836")
@pytest.mark.skipif("TESTED_VERSION < Version('2.14-dev')")
@backoff.on_exception(backoff.fibo, AssertionError, max_tries=5, jitter=None)
@pytest.mark.usefixtures("dev_portal_group")
@pytest.mark.usefixtures("login")
def test_dev_portal_sections(account, custom_devel_login, browser, testconfig, dev_portal_page):
Expand All @@ -85,11 +90,13 @@ def test_dev_portal_sections(account, custom_devel_login, browser, testconfig, d
- Assert that this account hasn't access to this page
"""
custom_devel_login(account=account)

browser.url = testconfig["threescale"]["devel"]["url"] + dev_portal_page

assert browser.element(".//h1").accessible_name == "Test"

custom_devel_login(name="john", password="123456", fresh=True)

browser.url = testconfig["threescale"]["devel"]["url"] + dev_portal_page

assert NotFoundView(browser).is_displayed
Loading