Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This collection of test cases will be testing the title of the page
- describe('title', function() {
- const driver = getDriver();
- // Before every test runs, we'll need to open up the web page in Firefox
- beforeEach(openWebsite(driver));
- // ▼ Write the test case for the page title below here ▼
- it('is correct', async function() {
- try {
- const expectedTitle = 'Example To Do List';
- const title = await driver.getTitle();
- title.should.equal(expectedTitle);
- } catch (error) {
- throw new Error(error);
- }
- });
- // ▲ Write the test case for the page title above here ▲
- // And then after all the tests, we can close the web page
- after(closeWebsite(driver));
- });
Add Comment
Please, Sign In to add comment