Skip to content

Commit

Permalink
Use includes function to find a string
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Jul 9, 2020
1 parent f2cd3f9 commit 526f10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/apps/discover/_discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function ({ getService, getPageObjects }) {
await retry.waitFor('doc table to contain the right search result', async () => {
const rowData = await PageObjects.discover.getDocTableField(1);
log.debug(`The first timestamp value in doc table: ${rowData}`);
return rowData.contains('Sep 21, 2015 @ 11:59:22.316');
return rowData.includes('Sep 21, 2015 @ 11:59:22.316');
});
});

Expand Down

0 comments on commit 526f10c

Please sign in to comment.