Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created June 9, 2014 11:41
Show Gist options
  • Save trikitrok/81b24e3bdfac54860b20 to your computer and use it in GitHub Desktop.
Save trikitrok/81b24e3bdfac54860b20 to your computer and use it in GitHub Desktop.
describe("A project landings list page", function () {
var TestTools = require('./TestTools'),
Navigation = require('./Navigation'),
ptor;
beforeEach(function () {
TestTools.resetTestData();
ptor = protractor.getInstance();
ptor.get('/ebo/#/projects/excecutive-education');
Navigation.logIn(ptor);
TestTools.waitForElementByCssToBePresent('.project-item__title', ptor);
});
// some tests ...
it("shows a new 'autoresponder' mailing", function () {
element(by.css('#new_ma')).click(); // <- produces an error
expect(ptor.getCurrentUrl())
.toMatch('/projects/excecutive-education/new-mailing/ma');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment