chore: update playwright workker to 100%

This commit is contained in:
tzhangchi
2022-12-27 15:45:44 +08:00
parent 697d265532
commit b3df4eb22e
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -5,11 +5,10 @@ loadPage();
test.describe('local first new page', () => {
test('click btn new page', async ({ page }) => {
const originPageUrl = page.url();
const originPageId = page.url().split('/').reverse()[0];
await page.getByText('New Page').click();
const newPageUrl = page.url();
expect(newPageUrl).not.toBe(originPageUrl);
expect(newPageUrl.length).toBe(originPageUrl.length);
const newPageId = page.url().split('/').reverse()[0];
expect(newPageId).not.toBe(originPageId);
});
test('click btn bew page and find it in all pages', async ({ page }) => {