Cypress · Middle · Question 12 of 77

Are aliases shared between tests?

Show the answer

Correct answer: No, aliases are reset before each test

Explanation

Define aliases in beforeEach if all tests need them. Using this.alias needs function () {} tests, not arrow functions.

Further reading

Problem with a question

Cypress · Middle · question 12

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz