Skip to content

Commit

Permalink
fix(network shim): use "Cypress.currentTest" in "getFeatureName"
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Nov 4, 2021
1 parent e0c40e7 commit 573bd78
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ export const splitHostAndPath = (url, hosts) => {
}

export const getFeatureName = () => {
let obj = Cypress.mocha.getRunner().suite.ctx.test
let title = null
while (obj && obj.parent && obj.parent.title) {
obj = obj.parent
title = obj.title
}
return title
return Cypress.currentTest.titlePath[0]
}

export const toJsonBlob = async input => {
Expand Down

0 comments on commit 573bd78

Please sign in to comment.