2020-08-28 20:51:55 +03:00
|
|
|
/**
|
|
|
|
* Copyright (c) Microsoft Corporation.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-09-03 07:43:38 +03:00
|
|
|
import { it, options } from './playwright.fixtures';
|
2020-08-28 20:51:55 +03:00
|
|
|
|
2020-09-11 20:02:07 +03:00
|
|
|
it('should not throw', (test, parameters) => {
|
2020-08-28 23:53:47 +03:00
|
|
|
test.skip(!options.TRACING);
|
2020-09-05 02:31:52 +03:00
|
|
|
}, async ({page, server, playwright, toImpl}) => {
|
2020-08-28 20:51:55 +03:00
|
|
|
await page.goto(server.PREFIX + '/snapshot/snapshot-with-css.html');
|
2020-09-05 02:31:52 +03:00
|
|
|
await (playwright as any).__tracer.captureSnapshot(toImpl(page), { timeout: 5000, label: 'snapshot' });
|
2020-08-28 20:51:55 +03:00
|
|
|
});
|