Commit 81077dca authored by Lynn Cyrin's avatar Lynn Cyrin

basic page existence checks

parent 71258d80
Pipeline #114851 passed with stage
describe('Quirell', function() {
formName = element(by.model('formdata.name'))
formNumber = element(by.model('formdata.number'))
formSubmit = element(by.id('form-submit'))
formDelete = element(by.id('form-delete'))
formBack = element(by.id('form-back'))
beforeEach(function() {
browser.get('http://localhost:5000');
});
afterEach(function() {
......@@ -15,4 +10,15 @@ describe('Quirell', function() {
it('should be named "Quirell" in the browser', function() {
expect(browser.getTitle()).toEqual('Quirell');
});
it('should allow you to navigate to the login screen from the homepage', function() {
element(by.linkText('Login / Signup')).click()
expect(browser.getTitle()).toEqual('Login / Signup | Quirell');
})
it('should not allow you to view the /profile page while logged out', function() {
browser.get('http://localhost:5000/profile')
expect(browser.getTitle()).toEqual('ERROR 401');
})
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment