-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workaround for handling unexpected pop ups during redirection maven build to editor #14814
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1e5b39c
Update devfile
Ohrimenko1988 231542a
Update devfile
Ohrimenko1988 506f0fe
Update devfile
Ohrimenko1988 e205496
Update devfile
Ohrimenko1988 c83fc72
Merge branch 'master' into selen-devfile-for-mmusienko
musienko-maxim ae65f43
Add workaround for issue https://github.com/eclipse/che/issues/14771
musienko-maxim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -147,8 +147,13 @@ suite('Language server validation', async () => { | |
suite('Validation of workspace build and run', async () => { | ||
test('Build application', async () => { | ||
await runTask('che: build-file-output'); | ||
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build-output.txt'); | ||
await editor.followAndWaitForText('build-output.txt', '[INFO] BUILD SUCCESS', 300000, 10000); | ||
|
||
//workaround for issue: https://github.com/eclipse/che/issues/14771 | ||
|
||
// await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build-output.txt'); | ||
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'result-build-output.txt', 220000); | ||
await editor.waitText('result-build-output.txt', '[INFO] BUILD SUCCESS'); | ||
// await editor.followAndWaitForText('build-output.txt', '[INFO] BUILD SUCCESS', 300000, 10000); | ||
}); | ||
|
||
test('Run application', async () => { | ||
|
@@ -188,11 +193,18 @@ suite('Display source code changes in the running application', async () => { | |
|
||
test('Build application with changes', async () => { | ||
await runTask('che: build'); | ||
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build.txt'); | ||
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'result-build.txt', 300000); | ||
await editor.waitText('result-build.txt', '[INFO] BUILD SUCCESS'); | ||
|
||
//workaround for issue: https://github.com/eclipse/che/issues/14771 | ||
|
||
/*await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build.txt'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same question #14814 (review) |
||
await editor.waitEditorAvailable('build.txt'); | ||
await editor.clickOnTab('build.txt'); | ||
await editor.waitTabFocused('build.txt'); | ||
await editor.followAndWaitForText('build.txt', '[INFO] BUILD SUCCESS', 300000, 5000); | ||
await editor.followAndWaitForText('build.txt', '[INFO] BUILD SUCCESS', 300000, 5000);*/ | ||
|
||
|
||
}); | ||
|
||
test('Run application with changes', async () => { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@musienko-maxim Why did you left commented code? In my opinion this is not a very good approach.