mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 04:30:17 +03:00
test(test-runner): add tests to show that grep is case insensitive (#8091)
This commit is contained in:
parent
f455b6edc0
commit
91394b257c
@ -87,3 +87,15 @@ test('should grep invert test name', async ({ runInlineTest }) => {
|
|||||||
expect(result.skipped).toBe(0);
|
expect(result.skipped).toBe(0);
|
||||||
expect(result.exitCode).toBe(0);
|
expect(result.exitCode).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('should be case insensitive by default', async ({ runInlineTest }) => {
|
||||||
|
const result = await runInlineTest(files, { 'grep': 'TesT Cc' });
|
||||||
|
expect(result.passed).toBe(3);
|
||||||
|
expect(result.skipped).toBe(0);
|
||||||
|
expect(result.exitCode).toBe(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('should be case sensitive by default with a regex', async ({ runInlineTest }) => {
|
||||||
|
const result = await runInlineTest(files, { 'grep': '/TesT Cc/' });
|
||||||
|
expect(result.passed).toBe(0);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user