test: better naming for e2e screenshots

This commit is contained in:
Jason Dreyzehner 2018-02-14 14:38:22 -05:00
parent f6e4f43f55
commit c9407a717d
16 changed files with 2 additions and 2 deletions

View File

@ -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);
});

View File

@ -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}`);
});

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB