Skip to content

Commit

Permalink
Fix e2e tests for navigation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Sep 1, 2017
1 parent 2b2df05 commit aea7d40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/integration/features/user_creates_project.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('', () => {
it('should successfully create a new project', () => {
goToCreateProjectPage();
projectHelpers.createProject(project, 'project/' + project['name'] + '/create');
h.waitForPresence('.breadcrumb li a', project['displayName']);
h.waitForPresence('.project-bar option[selected]', project['displayName']);
checkProjectSettings(project['name'], project['displayName'], project['description']);
});

Expand Down
4 changes: 2 additions & 2 deletions test/integration/helpers/matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ exports.expectAlert = (msg) => {
};

exports.expectHeading = (text, level) => {
expect(element(by.css(level || '.middle-container h1')).getText()).toEqual(text);
expect(element(by.css(level || '.middle h1')).getText()).toEqual(text);
};

exports.expectPartialHeading = (partialText, level, caseSensitive) => {
element(by.css(level || '.middle-container h1')).getText().then((text) => {
element(by.css(level || '.middle h1')).getText().then((text) => {
text = caseSensitive ? text : text.toLowerCase();
expect(text).toContain(partialText);
});
Expand Down
2 changes: 1 addition & 1 deletion test/integration/page-objects/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class OverviewPage extends Page {
return 'project/' + this.project.name + '/overview';
}
clickAddToProject() {
let button = element(by.cssContainingText('.add-to-project-btn', 'Add to Project'));
let button = element(by.cssContainingText('.add-to-project .dropdown-toggle', 'Add to Project'));
h.waitForElem(button);
button.click();
let menuItem = element(by.cssContainingText('.dropdown-menu a', 'Browse Catalog'));
Expand Down

0 comments on commit aea7d40

Please sign in to comment.