percy / percy-nightwatch

Visual testing with Nightwatch and Percy
https://percy.io
MIT License
6 stars 9 forks source link

Mobile APP compatibility 📸 #543

Open MadeinFrance opened 1 year ago

MadeinFrance commented 1 year ago

My tests are running fine with WebdriverIO but with Nightwatch I got the following error for Percy-NightWatch:

Error   Error while running .executeScript() protocol action: Method is not implemented

[percy:nightwatch] Could not take DOM snapshot "Login"
[percy:nightwatch] Error: Missing required URL for snapshot
it('pass the login', async function (app) {

    // NOT WORKING
    await app.percySnapshot('Login');

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

Is this custom command compatible/tested with a mobile APP project? See docs: https://nightwatchjs.org/guide/mobile-app-testing/introduction-writing-tests.html

itsjwala commented 1 year ago

hey @MadeinFrance 👋

currently percy-nightwatch repository only supports web app testing and doesn't support native apps.

and thus you won't be able to use percySnapshot from this repo to snapshot mobile apps.

to extend support for native mobile apps, I'll mark this issue as feature request.