Skip to content
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

JBIDE-22852 Add check for errors in log when cancelling New Project wizard in OpenNewApplicationWizardWithNoProjectTest #1559

Merged
merged 1 commit into from
Aug 4, 2016

Conversation

scabanovich
Copy link
Contributor

No description provided.

@vpakan
Copy link
Contributor

vpakan commented Jul 28, 2016

Can one of the admins verify this patch?

new ContextMenu(OpenShiftLabel.ContextMenu.NEW_OS3_APPLICATION).select();;

try {
new WaitWhile(new ShellWithTextIsAvailable(OpenShiftLabel.Shell.CREATE_OS_PROJECT), TimePeriod.LONG);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be WaitUntil, because as it is written now, it would fail every time if Create Project wizard is opened on top of New App wizard.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds quite reasonable, but since I copied it from another test method testOpenNewApplicationWizardFromOpenShiftExplorerWithNoProjects(), can it mean that it is a coding error there?
I have replaced WaitWhile with WaitUntil in both places.

@mlabuda
Copy link
Member

mlabuda commented Jul 29, 2016

@scabanovich added inline comments. Please fix them and then ask @psrna for merging commit.

…izard in OpenNewApplicationWizardWithNoProjectTest
@scabanovich
Copy link
Contributor Author

@mlabuda , @psrna , please consider new changes.

@mlabuda
Copy link
Member

mlabuda commented Aug 4, 2016

@scabanovich good catch with wait condition. It's evaluated so fast even the shell has not been yet opened and thus it passed. Now it looks good to me.

@psrna
Copy link
Member

psrna commented Aug 4, 2016

test this

@psrna psrna merged commit abf3860 into jbosstools:master Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants