import React, { useEffect } from 'react';
import TestDom from './TestDom';
import { teamixTest } from '@teamix/testing-capability';

const InnerTest = () => {
  useEffect(() => {
    setTimeout(async () => {
      const result = await teamixTest({
        testItem: ['COUNTTABLECOLUMNS'],
        element: '#example-1', // 可以用不同ID模拟测试不同页面
      });
      console.log('COUNTTABLECOLUMNS 测试结果 => ', result);
    }, 2000);
  }, []);

  return (
    <section>
      <h2>统计ProTable列数测试</h2>
      <div id="example-1">
        <TestDom />
      </div>
    </section>
  );
};

export default InnerTest;
