Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Oct 2, 2023
1 parent c2df12b commit 81555bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/apm/ftr_e2e/cypress_start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export function cypressRunTests(spec?: string) {
return async ({ getService }: FtrProviderContext) => {
const result = await cypressStart(getService, cypress.run, spec);

if (result && (result.status === 'failed' || result.totalFailed > 0)) {
if (
(result as CypressCommandLine.CypressFailedRunResult)?.status === 'failed' ||
(result as CypressCommandLine.CypressRunResult)?.totalFailed
) {
throw new Error(`APM Cypress tests failed`);
}
};
Expand Down

0 comments on commit 81555bb

Please sign in to comment.