-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part of #400 Signed-off-by: Aurélien Pupier <[email protected]>
- Loading branch information
Showing
6 changed files
with
70 additions
and
92 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,37 @@ | ||
import { By, EditorView, until, VSBrowser, WebDriver } from 'vscode-extension-tester'; | ||
import * as path from 'path'; | ||
import { openAndSwitchToKaotoFrame } from './Util'; | ||
|
||
describe('property panel loading test', function () { | ||
this.timeout(60_000); | ||
|
||
const workspaceFolder = path.join(__dirname, '../test Fixture with speci@l chars'); | ||
|
||
let driver: WebDriver; | ||
|
||
before(async function () { | ||
this.timeout(60_000); | ||
driver = VSBrowser.instance.driver; | ||
}); | ||
|
||
afterEach(async function () { | ||
const editorView = new EditorView(); | ||
await editorView.closeAllEditors(); | ||
}); | ||
|
||
it('Open "choice.camel.yaml" file and check property panel is loading', async function () { | ||
const { kaotoWebview, } = await openAndSwitchToKaotoFrame( | ||
workspaceFolder, | ||
'choice.camel.yaml', | ||
driver, | ||
true | ||
); | ||
const stepWhenXpath = By.xpath("//g[@data-testid='custom-node__when-*']"); | ||
await driver.wait(until.elementLocated(stepWhenXpath)); | ||
await (await driver.findElement(stepWhenXpath)).click(); | ||
await driver.wait( | ||
until.elementLocated(By.xpath("//input[@value='${header.foo} == 1']")) | ||
); | ||
await kaotoWebview.switchBack(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
test Fixture with speci@l chars/emptyKameletBinding.kaoto.yaml
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
apiVersion: camel.apache.org/v1 | ||
kind: Pipe | ||
metadata: | ||
name: my-integration-name | ||
spec: | ||
source: {} | ||
sink: {} |