Skip to content

Commit c01ca0f

Browse files
committed
Close no more used terminal view in test
it will allow to have better screenshot in case of failure on CI Signed-off-by: Aurélien Pupier <[email protected]>
1 parent 1337e06 commit c01ca0f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ui-test/tests/camel.settings.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe('Camel User Settings', function () {
127127

128128
});
129129

130-
describe('Update Extra Launch Parameter setting', function () {
130+
describe.only('Update Extra Launch Parameter setting', function () {
131131
const newParameter = '--trace';
132132

133133
it('Should add another parameter', async function () {
@@ -151,7 +151,10 @@ describe('Camel User Settings', function () {
151151

152152
await executeCommand(CAMEL_RUN_ACTION_QUICKPICKS_LABEL);
153153
await waitUntilTerminalHasText(driver, [defaultExtraLaunchParameterSetting, newParameter, `Tracing is enabled on CamelContext`], 15000, 180000);
154-
154+
155+
// cleaning for next test
156+
await killTerminal();
157+
await new BottomBarPanel().toggle(false);
155158
});
156159

157160
it('Should remove parameter', async function () {
@@ -162,7 +165,7 @@ describe('Camel User Settings', function () {
162165
await waitUntilItemNotExists(newParameter, arraySetting);
163166

164167
const values = await arraySetting.getValues();
165-
expect(values.length, `Curretn parameters are ${values}, we are expecting them to not contain ${newParameter}`).is.lessThan(3);
168+
expect(values.length, `Current parameters are ${values}, we are expecting them to not contain ${newParameter}`).is.lessThan(3);
166169
expect(values).not.includes(newParameter);
167170
await cleanEnvironment();
168171
});

0 commit comments

Comments
 (0)