Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Then(/^the phrase input should contain (\d+) words$/, async function (noOfWords) {
await browser.getValue("#seedphrase_input", function (phrase) {
const words = phrase.value.trim().split(" ")
expect(words).to.have.lengthOf(noOfWords)
})
});