We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8f9bc commit 5f5cbb1Copy full SHA for 5f5cbb1
cypress/e2e/common/spec_utils.js
@@ -36,8 +36,11 @@ export const afterEach = (taskResult, backend) => {
36
const spec = Cypress.mocha.getRunner().suite.ctx.currentTest.parent.title;
37
const testName = Cypress.mocha.getRunner().suite.ctx.currentTest.title;
38
39
- console.log(`Starting teardown for: ${spec} - ${testName}`);
40
- const startTime = Date.now();
+ let startTime;
+ cy.then(() => {
41
+ startTime = Date.now();
42
+ console.log(`Starting teardown for: ${spec} - ${testName}`);
43
+ });
44
45
cy.task('teardownBackendTest', {
46
backend,
0 commit comments