Skip to content

Commit

Permalink
[tests] Try to fix UI test suite
Browse files Browse the repository at this point in the history
Calls closeWelcome() and set the modeling perpective at the begining
  • Loading branch information
Hugo Marchadour committed Dec 9, 2013
1 parent 4c098d8 commit a58b04b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public UMLDesignerBot closeWelcome() {
}

public SWTBotDesignerEditor importAndOpenTravelAgency() {
closeWelcome();
bot.resetWorkbench();
openModelingPerspective();
String nameInWizard = "Travel Agency UML";

bot.menu("File").menu("New").menu("Example...").click();
Expand All @@ -91,7 +93,6 @@ public SWTBotDesignerEditor importAndOpenTravelAgency() {
bot.shell("New Example").bot().tree().expandNode("UML").getNode(nameInWizard).select();
bot.button("Next >").click();
bot.button("Finish").click();
closeWelcome();
bot.viewByTitle("Model Explorer").bot().tree().expandNode("TravelAgency").expandNode("agency.uml");

waitForProgressInformationComplete();
Expand Down Expand Up @@ -127,7 +128,9 @@ public SWTBotDesignerEditor openEntitiesClassDiagram() {
}

public void importAndOpenTestAllMappings() {
closeWelcome();
bot.resetWorkbench();
openModelingPerspective();
String nameInWizard = "Test All Mappings";

bot.menu("File").menu("New").menu("Example...").click();
Expand All @@ -136,7 +139,6 @@ public void importAndOpenTestAllMappings() {
bot.shell("New Example").bot().tree().expandNode("UML").getNode(nameInWizard).select();
bot.button("Next >").click();
bot.button("Finish").click();
closeWelcome();
bot.viewByTitle("Model Explorer").bot().tree().expandNode("TestAllMappings").expandNode("model.uml");

waitForProgressInformationComplete();
Expand Down

0 comments on commit a58b04b

Please sign in to comment.