percy / percy-webdriverio

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

[percy] Encountered an error uploading snapshot: #1029

Closed gharatla closed 12 months ago

gharatla commented 1 year ago

I am trying to integrate Visual Regression Testing using Percy in WebdriverIO Browser framework. Following SDK, I am using in my code. const percySnapshot=require('@percy/webdriverio'); ..... Package.json "devDependencies": { "@percy/cli": "^1.27.3", "@percy/webdriverio": "^3.0.1",............}

TestCase const percySnapshot=require('@percy/webdriverio'); describe('visual test with Percy', async () => { it('HomePage', async () => { await browser.url("https://www.amazon.in/") await expect(browser).toHaveUrl("https://www.amazon.in/") await expect(browser).toHaveUrlContaining("https://www.amazon.in/"); await percySnapshot('amazon Home Page') }) })

My test case is getting executed when run induvial. When I try to run my testcase with percy with following cmd npx percy exec wdio run ./wdio.conf.js

I am getting log in my test case as snapshot taken however failed to upload. [percy] Snapshot taken: amazon Home Page . . . [percy] Encountered an error uploading snapshot: amazon Home Page [percy] Error: Cannot finalize snapshots in app builds. Did you mean to call comparison finalize? [percy] Error: Finalizing build 30743767 failed: cannot finalize before all snapshots have comparisons created. This is likely an SDK error, please make sure that comparisons are created before calling finalize.

github-actions[bot] commented 1 year 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 12 months ago

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