text: import test                         from 'ava';
  import nightmare                    from 'nightmare';
  import cleanstyle                   from '../../helpers/cleanstyle';
  import common                       from '../../helpers/common';
  
  const runner = nightmare({
      show : false
  });
  
  let tagName = 'alert';
  let docUrl = common.getE2eDocUrl(tagName);
  let basicDemo = `[name="开始"] mor-${tagName}`;
  
  let context = {
      tagName,
      basicDemo,
      common
  };
  
  test.serial('basic style', async t => {
  
      const result = await runner
          .goto(docUrl)
          .wait(basicDemo)
          .evaluate(
              eval(`(${common.e2eBasicFnString})`),
              context
          );
  
      t.plan(1);
  
      cleanstyle(result.style);
  
      // cause : circleci use other webkit.
      delete result.style.inlineSize;
      delete result.style.perspectiveOrigin;
      delete result.style.webkitLogicalWidth;
      delete result.style.width;
  
      t.snapshot(result);
  
  });
  