Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Jan 24, 2017
1 parent fbdaa84 commit 33b4f24
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
type="text"
placeholder="Search..."
aria-label="Filter"
data-test-subj="searchFilter"
ng-model="listingController.filter"
>
</div>
Expand Down
3 changes: 2 additions & 1 deletion test/functional/apps/dashboard/_dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ bdd.describe('dashboard tab', function describeIndexTests() {
const dashboardName = 'Dashboard Test 1';
// TODO: save time on the dashboard and test it
return PageObjects.dashboard.saveDashboard(dashboardName)
// click New Dashboard just to clear the one we just created
.then(() => PageObjects.dashboard.gotoDashboardLandingPage())
// click New Dashboard just to clear the one we just created
.then(function () {
return PageObjects.common.try(function () {
PageObjects.common.debug('saved Dashboard, now click New Dashboard');
Expand Down
7 changes: 3 additions & 4 deletions test/support/page_objects/dashboard_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ export default class DashboardPage {
return this.gotoDashboardLandingPage()
.then(function filterDashboard() {
PageObjects.common.debug('Load Saved Dashboard button clicked');
return self.remote
.findByCssSelector('input[name="filter"]')
.click()
.type(dashName.replace('-',' '));
return PageObjects.common.findTestSubject('searchFilter')
.click()
.type(dashName.replace('-',' '));
})
.then(() => {
return PageObjects.header.isGlobalLoadingIndicatorHidden();
Expand Down

0 comments on commit 33b4f24

Please sign in to comment.