-
I tried to use both testAttachment and attachment, but all of them are returning the following error: TypeError: Cannot read properties of null (reading 'addAttachment') Because this error occurred during a Code: import HomePage from "../../pages/HomePage"; const allure = Cypress.Allure.reporter.getInterface(); describe('Changing background color to white on home page', () => {
}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are mixing up sync and async api, so at point when it is executed, async calls yet not happened. |
Beta Was this translation helpful? Give feedback.
You are mixing up sync and async api, so at point when it is executed, async calls yet not happened.
in test I would recommend to use cy.allure().attachment()