Skip to content

Commit

Permalink
test: add a glob test (#6911)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Jun 4, 2021
1 parent ff3ad7a commit ec2b6a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/page/interception.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ it('should work with glob', async () => {
expect(globToRegex('**/*.{png,jpg,jpeg}').test('https://localhost:8080/c.jpeg')).toBeTruthy();
expect(globToRegex('**/*.{png,jpg,jpeg}').test('https://localhost:8080/c.png')).toBeTruthy();
expect(globToRegex('**/*.{png,jpg,jpeg}').test('https://localhost:8080/c.css')).toBeFalsy();
expect(globToRegex('foo*').test('foo.js')).toBeTruthy();
expect(globToRegex('foo*').test('foo/bar.js')).toBeFalsy();
expect(globToRegex('http://localhost:3000/signin-oidc*').test('http://localhost:3000/signin-oidc/foo')).toBeFalsy();
expect(globToRegex('http://localhost:3000/signin-oidc*').test('http://localhost:3000/signin-oidcnice')).toBeTruthy();
});

it('should intercept network activity from worker', async function({page, server, isAndroid}) {
Expand Down

0 comments on commit ec2b6a7

Please sign in to comment.