https://cypress.io logo
If you use template literals you can actually use ...
# e2e-testing
f
If you use template literals you can actually use .type(‘${yourFunc()}{enter}’) same as .type(yourFunc()+’{enter}’) - this will also work, it’s just plain JS syntax and sugar more details here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#string_interpolation
2 Views