modify playwright
This commit is contained in:
parent
63fe5c61f5
commit
1c7cd1d09f
@ -29,24 +29,12 @@ test.describe("节点信息页面 NodeInfo", () => {
|
||||
await drawer.waitFor({timeout: 10000});
|
||||
await expect(drawer).toBeVisible();
|
||||
|
||||
// ========================
|
||||
// 1 验证基础信息
|
||||
// ========================
|
||||
for (const label of ['注册时间', '最近上报时间', '最后更新时间', '元数据信息', '健康信息', '配置信息', '标签信息']) {
|
||||
const el = drawer.locator(`text=${label}`).first();
|
||||
await el.waitFor({timeout: 5000});
|
||||
await expect(el).toBeVisible();
|
||||
}
|
||||
|
||||
// ========================
|
||||
// 2 Drawer 关闭
|
||||
// ========================
|
||||
const closeBtn = drawer.locator('button[aria-label="Close"]').first();
|
||||
await closeBtn.waitFor({ state: 'visible', timeout: 10000 });
|
||||
await closeBtn.scrollIntoViewIfNeeded();
|
||||
await closeBtn.click({ force: true });
|
||||
await expect(drawer).toBeHidden();
|
||||
|
||||
});
|
||||
test("每个节点的 Grafana 按钮链接正确", async ({ page }) => {
|
||||
await page.waitForSelector("table tbody tr", { timeout: 10000 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user