mirror of
https://github.com/bevyengine/bevy
synced 2024-12-19 01:23:09 +00:00
18 lines
438 B
JavaScript
18 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`);
|
||
|
|
||
|
});
|
||
|
});
|