示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        public void TakePictureTwo()
        {
            //Arrange

            //Act
            FaceOffPage.TapTakePhoto2Button();
            FaceOffPage.TapOK();

            if (Platform == Platform.Android)
            {
                return;
            }

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            //Assert
            Assert.IsTrue(FaceOffPage.IsScoreButton2Visible);
        }
示例#4
0
        public void TakePictureOne()
        {
            //Arrange

            //Act
            FaceOffPage.TapTakePhoto1Button();
            FaceOffPage.TapOK();

            if (App is AndroidApp)
            {
                return;
            }

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            //Assert
            Assert.IsTrue(FaceOffPage.IsScoreButton1Visible);
        }