Skip to content

Commit

Permalink
like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 8, 2023
1 parent 1e27398 commit 5ebc7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ beforeEach(() => {
})

afterEach(function () {
const { state, duration, title } = this.currentTest
const { state, duration, fullTitle } = this.currentTest
const event = state === 'passed' ? 'e2e_testing_test_passed' : 'e2e_testing_test_failed'

if (E2E_TESTING) {
Expand All @@ -76,7 +76,7 @@ afterEach(function () {

if (state === 'failed') {
const replayUrl = (win as any).posthog?.get_session_replay_url() || ''
const filePath = `./cypress/${title
const filePath = `./cypress/${fullTitle()
.trim()
.replace(/ +/g, '-')
.toLowerCase()
Expand Down

0 comments on commit 5ebc7e6

Please sign in to comment.