import React, { useEffect } from 'react'; import teamixTest, { productCalculate } from '@teamix/testing-capability'; import result from './data'; const InnerTest = () => { useEffect(() => { // 环境配置 // fetch('https://uni.mixteam.alibaba-inc.com/user/checkLogin.json'); }, []); useEffect(() => { setTimeout(async () => { console.log('TEAMIX_TEST_ERRORINFO', window.TEAMIX_TEST_ERRORINFO); const testA = await teamixTest({ testItem: ['UI'], uiPrefix: ['.my-prefix-', '.your-prefix-'], proPrefix: ['.my-prefix-pro'], needElement: true, }); console.log('ui测试 => ', testA); console.log(productCalculate(result)); }, 2000); }, []); return (
UI覆盖率

ProTable-prefix

hybridCloud-BannerCard

cloud-charts

TeamixUI-prefix

TeamixUI-prefix-2

); }; export default InnerTest;