test(admin): expect stove API section in navigation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Оболочка admin v2: 5 разделов, deep link, F5, CSP без inline."""
|
||||
"""Оболочка admin v2: 6 разделов, deep link, F5, CSP без inline."""
|
||||
import functools
|
||||
import http.server
|
||||
import os
|
||||
@@ -73,13 +73,13 @@ def test_deep_link_customers_and_f5(browser, site):
|
||||
page.close()
|
||||
|
||||
|
||||
def test_five_sections_navigate(browser, site):
|
||||
def test_six_sections_navigate(browser, site):
|
||||
page = browser.new_page()
|
||||
page.add_init_script("localStorage.setItem('token','t')")
|
||||
page.goto(site + "/admin/v2")
|
||||
page.wait_for_selector("h1")
|
||||
assert page.locator("h1").inner_text() == "Мой день"
|
||||
assert page.locator(".nav-link").count() == 5
|
||||
assert page.locator(".nav-link").count() == 6
|
||||
page.click('a[href="/admin/v2/money"]')
|
||||
page.wait_for_selector("h1")
|
||||
assert page.locator("h1").inner_text() == "Деньги"
|
||||
|
||||
Reference in New Issue
Block a user