Skip to content

Commit 717d511

Browse files
committed
test(ui): ensure the notification is from the ext
1 parent 28042fe commit 717d511

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

test/ui/install-prompts.test.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ describe('Download dependencies', () => {
3131
const message = await info.getMessage();
3232
const actions = await info.getActions();
3333
const title = await actions[0].getTitle();
34-
console.log(message);
35-
await info.takeAction(title);
36-
strictEqual(title, 'Install');
34+
const source = await info.getSource();
35+
if (source.includes('Modern Fortran')) {
36+
console.log(message);
37+
await info.takeAction(title);
38+
strictEqual(title, 'Install');
39+
}
3740
}
3841
});
3942
});
@@ -48,9 +51,12 @@ describe('Download dependencies', () => {
4851
const message = await info.getMessage();
4952
const actions = await info.getActions();
5053
const title = await actions[0].getTitle();
51-
console.log(`2nd lool: ${message}`);
52-
await info.takeAction(title);
53-
strictEqual(title, 'Install');
54+
const source = await info.getSource();
55+
if (source.includes('Modern Fortran')) {
56+
console.log(message);
57+
await info.takeAction(title);
58+
strictEqual(title, 'Install');
59+
}
5460
}
5561
});
5662
});

0 commit comments

Comments
 (0)