Advertisement
ntc_etc

main.js

Jan 17th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const assert = require('assert');
  2.  
  3. describe('A teacher who wants to start a session', () => {
  4.     it('should load tich', () => {
  5.         browser.url('https://tich.bunsan.io');
  6.         const title = browser.getTitle();
  7.         expect(title === "Tich");
  8.     });
  9.     it('should be able to login', () => {
  10.         $('[type=email]').value = 'luis.toledo@bunsan.io';
  11.         $('[type=password]').value = 'pass1234';
  12.         $('[type=submit]').click();
  13.         expect(browser.getTitle() === 'Courses')
  14.     });
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement