2021-04-02 02:35:26 +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.
|
|
|
|
*/
|
|
|
|
|
2021-05-06 17:08:22 +03:00
|
|
|
import { baseTest } from '../config/baseTest';
|
2021-04-02 02:35:26 +03:00
|
|
|
import type { Page } from '../../index';
|
2021-04-05 23:23:49 +03:00
|
|
|
export { expect } from 'folio';
|
2021-04-02 02:35:26 +03:00
|
|
|
|
2021-04-03 07:07:45 +03:00
|
|
|
// Page test does not guarantee an isolated context, just a new page (because Android).
|
2021-05-17 05:58:26 +03:00
|
|
|
export type PageTestFixtures = {
|
2021-04-06 08:22:07 +03:00
|
|
|
browserVersion: string;
|
2021-04-30 20:19:37 +03:00
|
|
|
browserMajorVersion: number;
|
2021-04-02 02:35:26 +03:00
|
|
|
page: Page;
|
2021-04-30 23:26:13 +03:00
|
|
|
isAndroid: boolean;
|
|
|
|
isElectron: boolean;
|
2021-04-02 02:35:26 +03:00
|
|
|
};
|
|
|
|
|
2021-05-17 05:58:26 +03:00
|
|
|
export const test = baseTest.declare<PageTestFixtures>();
|