Skip to content

Share driver for Percy 📸 #16

Description

@MadeinFrance

My tests are running fine with WebdriverIO but with Nightwatch I can't locate/share the driver for Percy snapshot.

it('pass the login', async function (app) {
    const myElement = await app.element.find(
      new By('accessibility id', 'login-button'),
    );

    // console.log(await myElement.takeScreenshot());
    // NOT WORKING
    // await percyScreenshot(myElement, 'Login');

    // working with WebdriverIO to snapshot the screen
    await percyScreenshot('Login');
  });
});

The exact error is when Percy is trying to evaluate the remoteHostname variable of the driver.
TypeError: Cannot read properties of undefined (reading 'includes')

See https://github.com/percy/percy-appium-js/blob/49c9170900ba86225a0c21c6e2cebe22d496511c/percy/providers/appAutomateProvider.js#L14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions