public void FinishVoting() { //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); storyCreation.CardSelection(gameId, selectedCard); var finishVoting = storyCreation.FnishVoting(gameId, selectedCard); //Then the user cand finish the voting session Assert.NotNull(finishVoting); }
public void GuestVotingSession() { //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); storyCreation.CardSelection(gameId, selectedCard); var guestCookie = authentification.Authentication($"{adress}/authentication/anonymous", "Gigel"); var guestCard = storyCreation.CreateStory(gameId, "story"); var finishVoting = storyCreation.FnishVoting(gameId, selectedCard); //Then the moderator can start the voting session Assert.NotNull(finishVoting); }