Skip to content

Commit

Permalink
Merge pull request #2 from binti-family/dj/then
Browse files Browse the repository at this point in the history
and -> then
  • Loading branch information
dj-binti authored Feb 8, 2023
2 parents 1f4c789 + 74995b9 commit fa1008c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function buildCommand ({name, type, locatorTemplate, labelTempl
return cy.get(selector, {
log: false,
timeout: options.wait
}).and($el => {
}).then($el => {
if (labelTemplate && $el && $el.is('label') && $el.attr('for')) {
return cy.get(labelTemplate.format({id: $el.attr('for')}))
} else {
Expand Down

0 comments on commit fa1008c

Please sign in to comment.