How to use the nightwatch-api.client.expect function in nightwatch-api

To help you get started, we’ve selected a few nightwatch-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github merland / seedpicker / step_definitions / seedpicker-steps.js View on Github external
Then(/^I can see the last word$/, async () => {
    await browser
        .expect.element("#checksum_word")
        .to.be.visible
});
Then(/^the last word should be "([^"]*)"$/, async word => {
github merland / seedpicker / step_definitions / dice-steps.js View on Github external
Then(/^the last word of the phrase should be "([^"]*)"$/, async function (word) {
    await browser
        .expect.elements("#phrase").text
        .to.endWith(word);
});
Then(/^the last word of the phrase should be the one word in the word list$/, async function () {
github merland / seedpicker / step_definitions / seedpicker-steps.js View on Github external
Then(/^the last word should be "([^"]*)"$/, async word => {
    await browser
        .expect.element("#checksum_word").text
        .to.equal(word)
});
Then(/^the Extended Public Key should start with "([^"]*)"$/, async word => {
github merland / seedpicker / step_definitions / dice-steps.js View on Github external
Then(/^the word list should contain (\d+) (?:word|words)$/, async noOfWords => {
    await browser
        .expect.elements("#word_table > tr")
        .count.to.equal(noOfWords);
});
When(/^I click the "([^"]*)" button$/, async function (button) {

nightwatch-api

[![npm version](https://badge.fury.io/js/nightwatch-api.svg)](https://badge.fury.io/js/nightwatch-api) [![Build Status](https://github.com/mucsi96/nightwatch-api/workflows/Build/badge.svg?branch=master)](https://github.com/mucsi96/nightwatch-api/actions)

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages