test: better naming for e2e screenshots
|
@ -7,7 +7,7 @@ describe('Copay', () => {
|
|||
});
|
||||
|
||||
it('Should display the logo on the landing view', async () => {
|
||||
takeScreenshot('landing.png');
|
||||
takeScreenshot('landing');
|
||||
const present = await element(by.css('#logo')).isPresent();
|
||||
expect(present).toEqual(true);
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ export async function takeScreenshot(name: string) {
|
|||
const config = await browser.getProcessedConfig();
|
||||
const deviceName = config['capabilities']['name'];
|
||||
const pngData = await browser.takeScreenshot();
|
||||
const path = join(dir, `${name}_${deviceName}`);
|
||||
const path = join(dir, `${name}_${deviceName}.png`);
|
||||
writeFile(path, pngData, { encoding: 'base64' }, err => {
|
||||
err ? console.error(err) : console.log(`File written: ${path}`);
|
||||
});
|
||||
|
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |