public void StartVoting() { //Scenario: Starting a voting session //Given a user creates a temporary account var cookie = authentification.Authentication($"{adress}/authentication/anonymous", userName); //When the user creates a room var room = new RoomsPage(adress, cookie); var gameInfo = room.CreateRoom("test"); var gameId = gameInfo.GameId.ToString(); var storyCreation = new RoomPage(adress, cookie); var story = storyCreation.CreateStory(gameId, "story"); var storyDetails = storyCreation.GetStoryDetails(gameId); var startVoting = storyCreation.StartVoting(gameId); //Then the user cand start a voting session Assert.NotEqual(startVoting.ToString(), "0"); }
public void CardSelection() { //Scenario: Card selectio //Given a user creates a temporary account var cookie = authentification.Authentication($"{adress}/authentication/anonymous", userName); //When the user start a voting session var room = new RoomsPage(adress, cookie); var gameInfo = room.CreateRoom("test"); var gameId = gameInfo.GameId.ToString(); var storyCreation = new RoomPage(adress, cookie); var story = storyCreation.CreateStory(gameId, "story"); var storyDetails = storyCreation.GetStoryDetails(gameId); var startVoting = storyCreation.StartVoting(gameId); var cardSelectio = storyCreation.CardSelection(gameId, selectedCard); //Then the user can select a card Assert.NotNull(cardSelectio); }
public void GuestAuthentification() { //Scenario: Moderator creates a voting session //Given a user creates a temporary account with moderator attributions var cookie = authentification.Authentication($"{adress}/authentication/anonymous", userName); //When the modetarotor starts a voting session var room = new RoomsPage(adress, cookie); var gameInfo = room.CreateRoom("test"); var gameId = gameInfo.GameId.ToString(); var storyCreation = new RoomPage(adress, cookie); var story = storyCreation.CreateStory(gameId, "story"); var storyDetails = storyCreation.GetStoryDetails(gameId); var startVoting = storyCreation.StartVoting(gameId); var gameCode = gameInfo.GameCode.ToString(); var guestCookie = authentification.Authentication($"{adress}/authentication/anonymous", "Gigel"); //Then the moderator can start the voting session Assert.NotNull(guestCookie); }