public void HomeToCastMember()
        {
            using var driver = new ChromeDriver();
            driver.Navigate().GoToUrl("http://localhost:3000/");

            driver.FindElementByTestId("moreFilms").Click();

            var heroTitle = driver.FindElementByTestId("hero-title");

            heroTitle.Text.Should().Be("Films");

            // var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10))
            //
            //
            // wait.Until()
        }
Ejemplo n.º 2
0
        public void TestHomePageLoads()
        {
            using var driver = new ChromeDriver();
            driver.Navigate().GoToUrl("http://localhost:3000/");

            var heroTitle = driver.FindElementByTestId("hero-title");

            heroTitle.Text.Should().Be("Welcome!");
        }
Ejemplo n.º 3
0
        public void TestFilmPageLoadsAllData()
        {
            using var driver = new ChromeDriver();

            driver.Navigate().GoToUrl("http://localhost:3000/films/299534");

            var filmPage = driver.FindElementByTestId("film-title");

            filmPage.Text.Should().Be("Avengers: Endgame");
        }