Skip to content

Commit f194e27

Browse files
committed
ci: update
1 parent 7c9f058 commit f194e27

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

test/ui/command.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ describe("Command Tests", function() {
4747
fse.copySync(projectPath, projectFolder);
4848
await VSBrowser.instance.openResources(projectFolder);
4949
currentProjectPath = projectFolder;
50+
// On Linux the workspace trust dialog appears before the folder is actually loaded.
51+
// Dismiss it here so subsequent steps see a fully opened workspace.
52+
await sleep(2000);
53+
await dismissModalDialogIfPresent();
5054
await ensureExplorerIsOpen();
5155
}
5256

test/ui/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ async function main(): Promise<void> {
1515
await exTester.installFromMarketplace("redhat.java");
1616
await exTester.downloadChromeDriver();
1717
await exTester.setupRequirements();
18-
process.exit(await exTester.runTests(testPath, {resources: []}));
18+
// Disable workspace trust via settings to prevent the trust dialog from
19+
// blocking project load on Linux (equivalent to --disable-workspace-trust).
20+
const testSettings = path.join(__dirname, "..", "..", "..", "test", "ui", "test-settings.json");
21+
process.exit(await exTester.runTests(testPath, {resources: [], settings: testSettings}));
1922
} catch (err) {
2023
console.log(err);
2124
process.exit(1);

test/ui/test-settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"security.workspace.trust.enabled": false
3+
}

0 commit comments

Comments
 (0)