Guest User

Untitled

a guest
Jun 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // This collection of test cases will be testing the title of the page
  2. describe('title', function() {
  3. const driver = getDriver();
  4.  
  5. // Before every test runs, we'll need to open up the web page in Firefox
  6. beforeEach(openWebsite(driver));
  7.  
  8. // ▼ Write the test case for the page title below here ▼
  9.  
  10. it('is correct', async function() {
  11. try {
  12. const expectedTitle = 'Example To Do List';
  13. const title = await driver.getTitle();
  14. title.should.equal(expectedTitle);
  15. } catch (error) {
  16. throw new Error(error);
  17. }
  18. });
  19.  
  20. // ▲ Write the test case for the page title above here ▲
  21.  
  22. // And then after all the tests, we can close the web page
  23. after(closeWebsite(driver));
  24.  
  25. });
Add Comment
Please, Sign In to add comment