bevy/.github/start-mobile-example/specs/screenshot.js
Tygyh c0489c362c
Remove unused variable (#10966)
# Objective

- Shorten code file.

## Solution

- Remove unused variable.
2023-12-13 20:41:45 +00:00

17 lines
438 B
JavaScript

const percyScreenshot = require('@percy/appium-app');
describe('Running Bevy Example', () => {
it('can take a screenshot', async () => {
// Sleep to wait for app startup, device rotation, ...
await new Promise(r => setTimeout(r, 2000));
// Take local screenshot
await browser.saveScreenshot('./screenshot.png');
// Take screenshot for visual testing
await percyScreenshot(`Bevy Mobile Example`);
});
});