Commit b54a2402 authored by Aneta Steimarova's avatar Aneta Steimarova

#929 Tests for Heap of Trophies

parent 1ede4deb
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
NewUserScenario
\ No newline at end of file
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
TestScenarioHeapOfTrophies
\ No newline at end of file
......@@ -17,9 +17,13 @@
package cz.nic.tablexia.testing;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.utils.SnapshotArray;
import java.util.Map;
import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.TablexiaApplication;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.GameDefinition;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
......@@ -395,8 +399,14 @@ public class TestScenarioHeapOfTrophies extends AbstractTestScenario {
private void openAndCheckScoreTable(int stepNumber, User user, int... score) {
clickAt(stepNumber + "a. Click at heap of trophies", HallOfFameScreen.TROPHY_HEAP_NAME);
waitForDialog("b. Wait for score table dialog", HallOfFameScreen.SCORE_TABLE_DIALOG_NAME);
waitForDialog(stepNumber + "b. Wait for score table dialog", HallOfFameScreen.SCORE_TABLE_DIALOG_NAME);
checkScoreTable(stepNumber, user, score);
SnapshotArray<Actor> stageActors = TablexiaApplication.getStage().getRoot().getChildren();
logInfo("\t Stage actors: ");
for (Actor stageActor : stageActors){
logInfo(stageActor.getName() + " ");
}
logInfo("\n");
clickAt(stepNumber + "d. Click at score table", HallOfFameScreen.SCORE_TABLE_DIALOG_NAME);
}
......
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