percy / percy-webdriverio

Visual testing with WebdriverIO and Percy
https://percy.io
MIT License
25 stars 22 forks source link

[percy] Unsupported Percy CLI version, disabling snapshots.Please help its blocker for me #1030

Closed gharatla closed 10 months ago

gharatla commented 11 months ago

I am trying to integrate Visual Regression Testing using Percy in Mobile automation with Appium and WebdriverIO framework. Following SDK, I am using in my code. const percySnapshot=require('@percy/webdriverio');

package.json "devDependencies": { "@percy/appium-app": "^2.0.1", "@percy/appium-wd": "^0.3.0", "@percy/cli": "^1.27.3", "@percy/cli-app": "^1.27.3", "@percy/webdriverio": "^3.0.1",

TestCase const percySnapshot=require('@percy/webdriverio'); const LoginScreen = require("../../screenobjects/android/login.screen.js") const ProfilePage = require("../../screenobjects/android/profile.page.js") describe('sample', async () => { it('User Preferences for communication and User avaibility on Profile page', async () => { await driver.pause(10000); await LoginScreen.loginBtn.click(); await driver.pause(20000); await ProfilePage.userPreferencesArrow.click(); await percySnapshot('webdriverPage'); await driver.pause(15000); }) }) Following test script work when running without Percy. When I try to run my testcase with percy with following cmd npx percy exec wdio config\wdio.android.conf.js

I am getting log in my test case as [percy] created build #40: https://percy.io/bfd0c1e6/webdriverio-visual/builds/30744549 [percy] percy has started. ........ [percy] Unsupported Percy CLI version, disabling snapshots ............ "spec" Reporter:

[RZ8N919VG9V Android 12 #0-0] Running: RZ8N919VG9V on Android 12 executing C:\Users\GharatLa\Repository\project\leadx\webdriverio-appium-v8\app\android\application-2d021449-ab[RZ8N919VG9V Android 12 #0-0] [RZ8N919VG9V Android 12 #0-0] » \test\specs\android\login-screen.specs.js [RZ8N919VG9V Android 12 #0-0] sample [RZ8N919VG9V Android 12 #0-0] - Edit your Profile details for [RZ8N919VG9V Android 12 #0-0] ✓ User Preferences for communication and User avaibility on Profile page [RZ8N919VG9V Android 12 #0-0] - User skills or technology on Profile page [RZ8N919VG9V Android 12 #0-0] - View Dashboard on Profile page [RZ8N919VG9V Android 12 #0-0] [RZ8N919VG9V Android 12 #0-0] 1 passing (52.1s) [RZ8N919VG9V Android 12 #0-0] 3 skipped

Spec Files: 1 passed, 1 total (100% completed) in 00:01:29

2023-10-20T07:31:04.832Z INFO @wdio/local-runner: Shutting down spawned worker 2023-10-20T07:31:05.098Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully 2023-10-20T07:31:05.101Z INFO @wdio/local-runner: shutting down [percy] stopping percy... [percy] waiting for 0 snapshots to complete... [percy] done. [percy] finalized build #40: https://percy.io/bfd0c1e6/webdriverio-visual/builds/30744549

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been stalled for 28 days with no activity.