Skip to content

Commit

Permalink
more changes to consolidate the page object function
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Mar 25, 2020
1 parent 7079fe1 commit e5d537d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/test/functional/page_objects/api_keys_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export function ApiKeysPageProvider({ getService }: FtrProviderContext) {

return {
async noAPIKeysHeading() {
const messageElement = await testSubjects.find('noApiKeysHeader');
const message = await messageElement.getVisibleText();
return message;
return await testSubjects.getVisibleText('noApiKeysHeader');
},

async getGoToConsoleButton() {
Expand Down

0 comments on commit e5d537d

Please sign in to comment.