forked from camel-tooling/camel-lsp-client-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
121 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License", destination); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { assert } from 'chai'; | ||
import { | ||
CATALOG_VERSION_UI, | ||
RESOURCES, | ||
closeEditor, | ||
waitUntilExtensionIsActivated, | ||
} from '../utils/testUtils'; | ||
import { | ||
ActivityBar, | ||
before, | ||
VSBrowser, | ||
WebDriver, | ||
TextSetting, | ||
Workbench | ||
} from 'vscode-uitests-tooling'; | ||
import * as pjson from '../../../package.json'; | ||
|
||
describe('mycosi', function () { | ||
this.timeout(300000); | ||
|
||
let driver: WebDriver; | ||
//let contentAssist: ContentAssist; | ||
|
||
before(async function () { | ||
this.timeout(40000); | ||
driver = VSBrowser.instance.driver; | ||
await VSBrowser.instance.openResources(RESOURCES); | ||
await VSBrowser.instance.waitForWorkbench(); | ||
|
||
await waitUntilExtensionIsActivated(driver, `${pjson.displayName}`); | ||
await (await new ActivityBar().getViewControl('Explorer')).openView(); | ||
}); | ||
|
||
it('actual version', async function () { | ||
const settings = await new Workbench().openSettings(); | ||
const textSetting = await settings.findSetting(CATALOG_VERSION_UI, 'Camel') as TextSetting; | ||
|
||
|
||
await textSetting.setValue(process.env.CAMEL_VERSION); | ||
|
||
console.log("my version: " + await textSetting.getValue()); | ||
|
||
|
||
await closeEditor('Settings', true); | ||
assert.isTrue(true); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters