Skip to content

Commit 727fcd5

Browse files
add trace, hardcode down to just one test, flip firstRun to true
1 parent e8229b1 commit 727fcd5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/compass-e2e-tests/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function main() {
5454
const e2eTestGroup = context.testGroup;
5555
const e2eTestFilter = context.testFilter;
5656

57-
const tests = (
57+
let tests = (
5858
await glob(`tests/**/${e2eTestFilter}.{test,spec}.ts`, {
5959
cwd: __dirname,
6060
})
@@ -67,6 +67,7 @@ async function main() {
6767
return index >= minGroupIndex && index <= maxGroupIndex;
6868
})
6969
.sort((a, b) => {
70+
// this comment is wrong
7071
// The only test file that's interested in the first-run experience (at the
7172
// time of writing) is time-to-first-query.ts and that happens to be
7273
// alphabetically right at the end. Which is fine, but the first test to run
@@ -82,6 +83,9 @@ async function main() {
8283
}
8384
});
8485

86+
tests = tests.filter((test) => test === 'tests/no-network-traffic.test.ts');
87+
88+
console.log('test files: ', tests);
8589
debug('Test files:', tests);
8690

8791
if (tests.length === 0) {
@@ -114,6 +118,7 @@ async function main() {
114118
debug('Running E2E tests');
115119
runnerPromise = new Promise((resolve) => {
116120
mocha.run((failures: number) => {
121+
console.log('on finish??');
117122
debug('Finished running e2e tests', { failures });
118123
process.exitCode = failures ? 1 : 0;
119124
// Since the webdriverio update something is messing with the terminal's
@@ -161,4 +166,6 @@ async function run() {
161166
await main();
162167
}
163168

169+
console.log('running???????');
170+
164171
void run();

packages/compass-e2e-tests/tests/no-network-traffic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('networkTraffic: false / Isolated Edition', function () {
6767
wrapBinary,
6868
// TODO(COMPASS-8166): firstRun: true seems to result in network traffic.
6969
// Probably the welcome modal.
70-
firstRun: false,
70+
firstRun: true,
7171
});
7272
const browser = compass.browser;
7373

0 commit comments

Comments
 (0)