Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Charles David2017-02-07 15:40:51 +0000
committerPierre-Charles David2017-02-08 16:34:06 +0000
commitfbccbc50975900ffce41e7d5938362dffcdcbed7 (patch)
tree661287e936803974b3ed82763376df34dfd82341
parenta8fd8ecece5d2900e497fbf159dbc55c3b5f8b2f (diff)
downloadorg.eclipse.sirius-fbccbc50975900ffce41e7d5938362dffcdcbed7.tar.gz
org.eclipse.sirius-fbccbc50975900ffce41e7d5938362dffcdcbed7.tar.xz
org.eclipse.sirius-fbccbc50975900ffce41e7d5938362dffcdcbed7.zip
[510126] Fix ValidationEmptyNameTest
Changes in the validation code caused the VSM editor state to be different from what the test expected. Explicitly expand the tree items we need to access the leaf element of interest to avoid WidgetNotFoundExceptions. Bug: 510126 Change-Id: Idf0f4ec25909314a2e805f1d0b6c8a0108696f01 Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/editor/vsm/ValidationEmptyNameTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/editor/vsm/ValidationEmptyNameTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/editor/vsm/ValidationEmptyNameTest.java
index 532610f887..8bb4d2f650 100644
--- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/editor/vsm/ValidationEmptyNameTest.java
+++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/editor/vsm/ValidationEmptyNameTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014, 2016 Obeo.
+ * Copyright (c) 2014, 2017 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -100,7 +100,7 @@ public class ValidationEmptyNameTest extends AbstractSiriusSwtBotGefTestCase {
* the tree validated
*/
private void checkIconNodeInvalidate(final SWTBotVSMEditor odesignEditor, SWTBotTree tree) {
- final SWTBotTreeItem treeItem = tree.getTreeItem(ODESIGN).getNode("Group").getNode("emptyName").getNode("diagTest").getNode("Default").getNode("Node").select();
+ final SWTBotTreeItem treeItem = tree.getTreeItem(ODESIGN).getNode("Group").getNode("emptyName").expandNode("diagTest", "Default", "Node").select();
bot.waitUntil(new TreeItemWithImageCondition(treeItem, getNodeMappingWithErrorImage(), "A red cross must appear on overlay of the node mapping image."));
}

Back to the top