Made chat history transparent.

#story[1246]
This commit is contained in:
Kusal Ekanayake
2017-09-07 17:02:42 +12:00
parent 0b61dffe71
commit 3364f8b516
5 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
Feature: SendChat
Scenario: User send chat to another client
Given There are two games running
When the user has pressed sends the message "Hello world" in a text box
When the first client has sent the message "Hello world"
Then the other client should receive the message "Hello world"
+2 -2
View File
@@ -21,7 +21,7 @@ public class SendChatSteps {
private MainServerThread mst;
//TODO Need to mock the controller pane in order to run the full game client
//TODO Need to mock the controller pane in order to run the full game client
@Given("^There are two games running$")
public void the_are_two_games_running() throws Throwable {
mst = new MainServerThread();
@@ -42,7 +42,7 @@ public class SendChatSteps {
}
@When("^the user has pressed sends the message \"([^\"]*)\" in a text box$")
@When("^the first client has sent the message \"([^\"]*)\"$")
public void the_user_has_pressed_sends_the_message_in_a_text_box(String arg1) throws Throwable {
client.sendChatterMessage("[time_prefix] <name_prefix> " + arg1);
}