mirror of
https://github.com/bevyengine/bevy
synced 2024-12-25 12:33:07 +00:00
c0489c362c
# Objective - Shorten code file. ## Solution - Remove unused variable.
17 lines
438 B
JavaScript
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`);
|
|
|
|
});
|
|
});
|