test(): remove custom screenshot names (#18022)

* test(): remove custom screenshot names

* update test names
This commit is contained in:
Liam DeBeasi
2019-04-12 13:02:03 -04:00
committed by GitHub
parent 6e1a8f1df2
commit 1199c53437
13 changed files with 73 additions and 122 deletions

View File

@ -1,18 +1,14 @@
import { newE2EPage } from '@stencil/core/testing';
import { cleanScreenshotName, dragElementBy, generateE2EUrl, listenForEvent, waitForFunctionTestContext } from '../../../utils/test/utils';
import { dragElementBy, generateE2EUrl, listenForEvent, waitForFunctionTestContext } from '../../../utils/test/utils';
export async function testPickerColumn(
type: string,
selector: string,
rtl = false,
screenshotName: string = cleanScreenshotName(selector)
rtl = false
) {
try {
const pageUrl = generateE2EUrl('picker-column', type, rtl);
if (rtl) {
screenshotName = `${screenshotName} rtl`;
}
const page = await newE2EPage({
url: pageUrl
@ -24,7 +20,7 @@ export async function testPickerColumn(
await openButton.click();
await page.waitFor(250);
screenshotCompares.push(await page.compareScreenshot(`${screenshotName}`));
screenshotCompares.push(await page.compareScreenshot());
// Setup counter
let colChangeCounter: any;