diff --git a/x-pack/plugins/osquery/cypress/tasks/live_query.ts b/x-pack/plugins/osquery/cypress/tasks/live_query.ts index 0d7d8043ca2c3..a8c1ec9e0d374 100644 --- a/x-pack/plugins/osquery/cypress/tasks/live_query.ts +++ b/x-pack/plugins/osquery/cypress/tasks/live_query.ts @@ -140,7 +140,7 @@ export const addLiveQueryToCase = (actionId: string, caseId: string) => { addToCase(caseId); }; -const casesOsqueryResultRegex = /attached Osquery results[\s]?[\d]+[\s]?seconds ago/; +const casesOsqueryResultRegex = /attached Osquery results[\s]?[\d]+[\s]?second(?:s)? ago/; export const viewRecentCaseAndCheckResults = () => { cy.contains('View case').click(); cy.contains(casesOsqueryResultRegex);