Run nested UI checks and align authentication assertions with public workspace routes
creative workspace review checks / verify (pull_request) Failing after 19m41s

This commit is contained in:
2026-10-30 18:13:58 +08:00
parent 33405b7d8b
commit cad84f8a67
3 changed files with 8 additions and 4 deletions
@@ -61,7 +61,7 @@ export async function verifyGuidancePublishing(base:string){
await page.getByRole('navigation',{name:'主导航',exact:true}).getByRole('link',{name:'社区文档',exact:true}).click();await page.locator(link).waitFor({state:'visible'});
await page.locator(link).click();
await page.waitForURL(url=>url.pathname==='/documents/'+httpDoc.id&&url.searchParams.get('revision')==='1');
try{await page.getByRole('heading',{name:httpDoc.title,exact:true}).waitFor();}
try{await page.getByRole('heading',{name:httpDoc.title,exact:true,level:1}).waitFor();}
catch(error){console.error('Document navigation diagnostics',JSON.stringify({url:page.url(),headings:await page.locator('h1').allTextContents(),events:navigationDiagnostics}));throw error;}
assert.equal(await page.locator('h1').textContent(),httpDoc.title);
await page.goto(base+'/write',{waitUntil:'domcontentloaded'});assert.equal(await page.locator('h1').textContent(),'发布独立文档');