12345678910111213141516171819202122232425262728293031323334 |
- describe('css-font-family-icon', () => {
- const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase();
- const isMP = platformInfo.startsWith('mp');
- const isWeb = platformInfo.startsWith('web');
- const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true';
- let page;
- if (isWeb || isMP || isAppWebView) {
- it('other platform', () => {
- expect(1).toBe(1);
- });
- return;
- }
- it('screenshot', async () => {
- page = await program.reLaunch('/pages/CSS/text/font-family-icon');
- await page.waitFor('view');
-
- const image = await program.screenshot({
- fullPage: true
- });
- expect(image).toSaveImageSnapshot();
- });
- it('screenshot after changeStyle', async () => {
- await page.callMethod('changeStyle');
- await page.waitFor(500);
- const image = await program.screenshot({
- fullPage: true
- });
- expect(image).toSaveImageSnapshot();
- });
- });
|