exercise nested mobile navigation through its API boundary

This commit is contained in:
cieanyau committed 2026-11-07 02:32:07 +08:00
1 parent 70dbd0daf6
commit c3a67377c7
2 files changed
+6

No files matched your search

+2
View File
@@ -148,6 +148,8 @@ const server = createServer(async (request, response) => {
if (options.hangLogout) return; if (options.hangLogout) return;
return reply(response); return reply(response);
} }
if (path === "/security_group" && request.method === "GET")
return reply(response, { list: [], count: 0 });
if (path === "/ssh_key" && request.method === "GET") { if (path === "/ssh_key" && request.method === "GET") {
if (options.hangSshBody) { if (options.hangSshBody) {
// 只发送响应头和不完整JSON,保持连接以复现“响应体解码永不结束”。 // 只发送响应头和不完整JSON,保持连接以复现“响应体解码永不结束”。
+4
View File
@@ -68,6 +68,10 @@ test(
"Closing navigation restores the opener", "Closing navigation restores the opener",
); );
await opener.click(); await opener.click();
// 当前后台菜单把 SSH 放在独立入口;目标安全组位于尚未展开的安全分组。
await navigation(page)
.getByRole("button", { name: "安全", exact: true })
.click();
await navigation(page) await navigation(page)
.getByRole("link", { name: "安全组", exact: true }) .getByRole("link", { name: "安全组", exact: true })
.click(); .click();