Commit 6b010cc0 authored by Aneta Steimarova's avatar Aneta Steimarova

#929 Fixed test problem with new rune holder

parent 4f39841c
TestStatisticsButtons
\ No newline at end of file
TestGameRunesEasyNoneStar
TestGameRunesEasyTwoStar
TestGameRunesEasyThreeStar
TestGameRunesMediumNoneStar
TestGameRunesMediumTwoStar
TestGameRunesMediumThreeStar
TestGameRunesHardNoneStar
TestGameRunesHardTwoStar
TestGameRunesHardThreeStar
\ No newline at end of file
......@@ -128,13 +128,15 @@ public class TestGameRunes extends AbstractTestGame {
HealthBar healthBar = (HealthBar) findGameActor(RunesGame.HEALTH_BAR);
int round = 0;
int mistakesCounter = 0;
while (round < RunesGameProperties.GAME_ROUNDS){
round++;
boolean mistakeInRound = playRound(targetPlate,runes);
if(mistakeInRound==true) mistakesCounter++;
if(!healthBar.hasHealthsLeft()){
if(!healthBar.hasHealthsLeft() || mistakesCounter >= 3){
break;
}
......@@ -170,7 +172,7 @@ public class TestGameRunes extends AbstractTestGame {
}
//Click on holder
clickOnHolder(incGetSteps() + ". Click on holder with target: " + targetRune,holderWithTarget);
if(TablexiaSettings.getInstance().isRunningOnMobileDevice()) clickOnHolder(incGetSteps() + ". Click on holder with target: " + targetRune,holderWithTarget);
wait(WAIT_TIME);
//Click on rune
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment