Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"test_patterns": "node build/test/test/source/patterns.js",
"test_async_stack": "node build/test/test/source/async-stack.js",
"test_buf": "npx ava --timeout=20m --verbose --concurrency=10 build/test/test/source/buf.js",
"test_ci_chrome_consumer_live_gmail": "npx ava --timeout=20m --verbose --concurrency=10 build/test/test/source/test.js -- CONSUMER-LIVE-GMAIL STANDARD-GROUP",
"test_ci_chrome_consumer_live_gmail": "npx ava --timeout=20m --verbose --concurrency=1 build/test/test/source/test.js -- CONSUMER-LIVE-GMAIL STANDARD-GROUP",
"test_ci_chrome_consumer": "npx ava --timeout=20m --verbose --concurrency=10 build/test/test/source/test.js -- CONSUMER-MOCK STANDARD-GROUP",
"test_ci_chrome_enterprise": "npx ava --timeout=20m --verbose --concurrency=10 build/test/test/source/test.js -- ENTERPRISE-MOCK STANDARD-GROUP",
"test_ci_chrome_consumer_flaky": "npx ava --timeout=20m --verbose --concurrency=10 build/test/test/source/test.js -- CONSUMER-MOCK FLAKY-GROUP",
Expand Down
2 changes: 1 addition & 1 deletion test/source/browser/test-urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { GmailCategory } from '../tests/gmail';

export class TestUrls {
public constructor(public extensionId: string, public port: number) {}
public constructor(public extensionId: string, public port?: number) {}

public static googleChat = (acctLoginIndex = 0) => {
return `https://mail.google.com/chat/u/${acctLoginIndex}`;
Expand Down
2 changes: 2 additions & 0 deletions test/source/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const testWithBrowser = (
if (isMock) {
const mockApi = await startMockApiAndCopyBuild(t);
closeMockApi = mockApi.close;
} else {
t.urls = new TestUrls(await browserPool.getExtensionId(t));
}
try {
await browserPool.withNewBrowserTimeoutAndRetry(
Expand Down