Ejemplo n.º 1
0
        public void LoginPage_LoginToUserIsWorking_DisplayFavoriteRegionPage()
        {
            var weatherPageObject = new WeatherPageObject(app);

            weatherPageObject.SubmitLogin("123", "456");

            var NameDisplayed = weatherPageObject.IsNameDisplayed("Vos favoris");

            Assert.IsTrue(NameDisplayed);
        }
Ejemplo n.º 2
0
        public void FavoriteRegionPage_AddRegionIsWorking_DisplayUserPage()
        {
            var weatherPageObject = new WeatherPageObject(app);

            weatherPageObject.SubmitLogin("123", "456");
            weatherPageObject.SubmitFavoriteRegion("quebec");

            var NameDisplayed = weatherPageObject.IsNameDisplayed("quebec");

            Assert.IsTrue(NameDisplayed);
        }
Ejemplo n.º 3
0
        public void FavoriteRegionPage_FavoriteRegionPageIsWorking_DisplayFavoriteRegionPage()
        {
            var weatherPageObject = new WeatherPageObject(app);

            weatherPageObject.SubmitLogin("123", "456");
            weatherPageObject.FavoriteRegionPage();

            var NameDisplayed = weatherPageObject.IsNameDisplayed("Page des regions favorites");

            Assert.IsTrue(NameDisplayed);
        }
Ejemplo n.º 4
0
        public void UserPage_LogoutUserIsWorking_DisplayMainPage()
        {
            var weatherPageObject = new WeatherPageObject(app);

            weatherPageObject.SubmitLogin("123", "456");
            weatherPageObject.LogoutUser();

            var NameDisplayed = weatherPageObject.IsNameDisplayed("Courriel :");

            Assert.IsTrue(NameDisplayed);
        }
Ejemplo n.º 5
0
        public void FavoriteRegionPage_RemoveRegionIsWorking_DisplayFavoriteRegionPage()
        {
            var weatherPageObject = new WeatherPageObject(app);

            weatherPageObject.SubmitLogin("123", "456");
            weatherPageObject.SubmitFavoriteRegion("quebec");
            weatherPageObject.FavoriteRegion();
            weatherPageObject.RemoveRegion();

            var NameDisplayed = weatherPageObject.IsNameDisplayed(UiText.REGION_REMOVED);

            Assert.IsTrue(NameDisplayed);
        }