Address comments
This commit is contained in:
parent
6c96dc48ff
commit
dcdc4e3f6c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue