As part of my nightwatchjs test script, I have the following code
var dealerName = sellerWebsiteAddressQueryPage.Website.filter(val => typeof val === 'string')
and what I'd like to do is use this as part of an assertion, as below
.assert.elementPresent('li.contact-seller__action a[href*="dealerName"]');
But I can't seem to find the correct way to include the variable dealerName within this assertion.
Any help would be greatly appreciated.