Address comments

This commit is contained in:
Yury Semikhatsky 2024-04-16 10:23:48 -07:00
parent 6c96dc48ff
commit dcdc4e3f6c
2 changed files with 0 additions and 11 deletions

View file

@ -55,13 +55,11 @@ class ZoneManager {
class Zone<T> {
readonly type: ZoneType;
readonly data: T;
readonly wallTime: number;
readonly previous: Zone<unknown> | undefined;
constructor(previous: Zone<unknown> | undefined, type: ZoneType, data: T) {
this.type = type;
this.data = data;
this.wallTime = Date.now();
this.previous = previous;
}
}

View file

@ -368,15 +368,6 @@ export async function toHaveScreenshot(
throw new Error(`Screenshot name "${path.basename(helper.snapshotPath)}" must have '.png' extension`);
expectTypes(pageOrLocator, ['Page', 'Locator'], 'toHaveScreenshot');
const style = await loadScreenshotStyles(helper.options.stylePath);
return toHaveScreenshotContinuation.call(this, helper, page, locator, style);
}
async function toHaveScreenshotContinuation(
this: ExpectMatcherContext,
helper: SnapshotHelper,
page: PageEx,
locator: Locator | undefined,
style?: string) {
const expectScreenshotOptions: ExpectScreenshotOptions = {
locator,
animations: helper.options.animations ?? 'disabled',