Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit bd1c29e

Browse files
authored
fix: use alias if passed to select element
Fix Aliases
2 parents 401aeb3 + 7047152 commit bd1c29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const mount = (jsx, alias) => {
135135
jsx,
136136
document.getElementById('cypress-jsdom')
137137
)
138-
cy.wrap(component, { log: false }).as(displayname)
138+
cy.wrap(component, { log: false }).as(alias || displayname)
139139
})
140140
cy.copyComponentStyles(jsx)
141141
.then(() => {

0 commit comments

Comments
 (0)