BestNotes/test/specs/base/navigation.js

22 lines
561 B
JavaScript
Raw Normal View History

2019-11-29 22:16:18 +01:00
const base = require('./base');
const Login = require('../components/login');
2019-12-08 22:46:26 +01:00
const Note = require('../components/note');
2019-11-29 22:16:18 +01:00
class Navigation {
constructor() {
this.loginUrl = 'http://bestnotes.pythonanywhere.com/bestnotes/accounts/login/';
2019-12-08 22:46:26 +01:00
this.notesUrl = 'http://bestnotes.pythonanywhere.com/bestnotes/notes/1';
2019-11-29 22:16:18 +01:00
}
toLoginPage() {
browser.url(this.loginUrl);
return new Login();
2019-12-08 22:46:26 +01:00
}
toNotesPage() {
browser.url(this.notesUrl);
return new Note();
2019-11-29 22:16:18 +01:00
}
}
module.exports = new Navigation();