fix(admin-ui): align task orientation and navigation with page policies
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""Narrow heading/copy follow-up on the existing synthetic fixture."""
|
||||
from pathlib import Path
|
||||
import json
|
||||
from playwright.sync_api import sync_playwright,expect
|
||||
out=Path(__file__).parent;results=[]
|
||||
with sync_playwright() as p:
|
||||
b=p.chromium.launch(channel='chromium')
|
||||
for width in [1440,390]:
|
||||
page=b.new_page(viewport={'width':width,'height':900})
|
||||
for path in ['/','/clusters/C1/namespaces','/clusters/C1/namespaces/N1']:
|
||||
response=page.goto('http://127.0.0.1:58714'+path+'?role=Designer');assert response.status==200
|
||||
expect(page.locator('h1')).to_have_count(1);expect(page.locator('h2.panel-head')).to_have_count(1);expect(page.locator('.page-head h1')).to_have_count(1)
|
||||
assert 'placeholder' not in page.locator('main').inner_text()
|
||||
if path.endswith('/namespaces'):assert 'Existing namespace links remain available for reference.' in page.locator('main').inner_text()
|
||||
results.append({'width':width,'path':path,'h1':page.locator('h1').inner_text(),'h2':page.locator('h2.panel-head').inner_text(),'passed':True})
|
||||
page.close()
|
||||
b.close()
|
||||
(out/'final-render.json').write_text(json.dumps(results,indent=2)+'\n');print(len(results),'passed')
|
||||
Reference in New Issue
Block a user