-
-
Save up1/68e7509ffecca7dccb4c0ad5cef31de2 to your computer and use it in GitHub Desktop.
Playwright 1.42.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('test customer login', { tag: ['@fast', '@login'] }, async ({ page }) => { | |
// ... | |
}); | |
// ทำการ run test ด้วย tag | |
$npx playwright test --grep @fast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { test, expect } from '@playwright/test'; | |
test('test login page', { | |
annotation: { | |
type: 'issue', | |
description: 'https://github.com/microsoft/playwright/issues/23180', | |
}, | |
}, async ({ page }) => { | |
// ... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test.describe('chromium only', () => { | |
test.skip(({ browserName }) => browserName !== 'chromium', 'Chromium only!'); | |
test.beforeAll(async () => { | |
// This hook is only run in Chromium. | |
}); | |
test('test 1', async ({ page }) => { | |
// This test is only run in Chromium. | |
}); | |
test('test 2', async ({ page }) => { | |
// This test is only run in Chromium. | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment