You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
Just starting out with Protractor and unsure whether this is a defect or my own mistake:
it 'should accept a valid email address and password', ->
browser.get 'app/#/login'
url = browser.getCurrentUrl()
loginButton = element `by`.xpath '//form[1]/input[@type="submit"]'
emailField = element `by`.name 'login-email'
passwordField = element `by`.name 'login-password'
emailField.sendKeys('test@example.com')
passwordField.sendKeys('test')
loginButton.click()
ptor.waitForAngular()
expect(browser.getCurrentUrl()).not.toEqual(url)
This test yields TypeError: Cannot call method 'toEqual' of undefined. When my app is a little further along, I can change this test to be a positive check for a known URL instead of a negative check against the login URL, but I didn't see this removed capability mentioned in the docs so I thought it would be worth raising an issue.
The text was updated successfully, but these errors were encountered:
Just starting out with Protractor and unsure whether this is a defect or my own mistake:
This test yields
TypeError: Cannot call method 'toEqual' of undefined
. When my app is a little further along, I can change this test to be a positive check for a known URL instead of a negative check against the login URL, but I didn't see this removed capability mentioned in the docs so I thought it would be worth raising an issue.The text was updated successfully, but these errors were encountered: