fix: improve footer visibility with data-testid and waitForFooter method
This commit is contained in:
1 parent
f91f57cbbb
commit
c678df44ae
3 files changed
+9
-3
No files matched your search
@@ -70,7 +70,7 @@ test.describe('首页冒烟测试 @smoke', () => {
|
||||
});
|
||||
|
||||
test('应该显示页脚', async ({ homePage }) => {
|
||||
await homePage.scrollToBottom();
|
||||
await homePage.waitForFooter();
|
||||
await expect(homePage.footer).toBeVisible();
|
||||
const footerText = await homePage.getFooterText();
|
||||
expect(footerText.length).toBeGreaterThan(0);
|
||||
|
||||
Reference in new issue
Block a user