From the course: Building Angular and Django Apps
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
End-to-end testing the filtered data table
From the course: Building Angular and Django Apps
End-to-end testing the filtered data table
- [Instructor] We're going to be taking a slightly different approach with this next end to end test. We have a utility function called screenshot, which will take a screenshot in the browser, and write it to a file. First we're going to be clicking on the list button, and we're going to be checking the page heading, and we expect that the page heading is equal to tours available and then we're going to be waiting 1000 milliseconds and then taking a screenshot of the initial list of tours that are loaded. We're expecting that the mat chips that we're using are on the page. We're looking for the one day tour length filter chip and we expect it to be present. We also expect the two days filter to be present as well. And then we're going to be clicking on that two days filter, and we have to await for that click and then we're going to be awaiting for 1000 milliseconds, or one second, for the browser to load up all the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.