public void VerifyResetButton() { //Arrange string firstEmotion = FaceOffPage.Emotion; string secondEmotion; //Act if (App is AndroidApp) { return; } FaceOffPage.TapTakePhoto1Button(); FaceOffPage.TapOK(); CameraPage.TapPhotoCaptureButton(); CameraPage.TapUsePhotoButton(); FaceOffPage.WaitForPhotoImage1(); FaceOffPage.TapResetButton(); //Assert secondEmotion = FaceOffPage.Emotion; Assert.AreNotEqual(firstEmotion, secondEmotion); Assert.IsFalse(FaceOffPage.IsScoreButton1Visible); Assert.IsFalse(FaceOffPage.IsScoreButton2Visible); Assert.IsFalse(FaceOffPage.IsPhotoImage1Visible); Assert.IsFalse(FaceOffPage.IsPhotoImage2Visible); }
public void VerifyResetButton() { //Arrange string firstEmotion = FaceOffPage.Emotion; string secondEmotion; //Act if (Platform == Platform.Android) { return; } FaceOffPage.TapTakePhoto1Button(); FaceOffPage.TapOK(); CameraPage.TapPhotoCaptureButton(); CameraPage.TapUsePhotoButton(); FaceOffPage.WaitForPhotoImage1(); FaceOffPage.TapResetButton(); //Assert secondEmotion = FaceOffPage.Emotion; Assert.AreNotEqual(firstEmotion, secondEmotion); }
public void TakePictureTwo() { //Arrange //Act FaceOffPage.TapTakePhoto2Button(); FaceOffPage.TapOK(); if (Platform == Platform.Android) { return; } CameraPage.TapPhotoCaptureButton(); CameraPage.TapUsePhotoButton(); //Assert Assert.IsTrue(FaceOffPage.IsScoreButton2Visible); }
public void TakePictureOne() { //Arrange //Act FaceOffPage.TapTakePhoto1Button(); FaceOffPage.TapOK(); if (App is AndroidApp) { return; } CameraPage.TapPhotoCaptureButton(); CameraPage.TapUsePhotoButton(); //Assert Assert.IsTrue(FaceOffPage.IsScoreButton1Visible); }