Skip to content

ushinohama966/dom-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dom-testing

A javascript library for dom operation test

Install

npm install -D dom-testing

or

yarn add -D dom-testing

Usage

import {
  clickButton,
  inputString,
  syncTest,
  matchElement,
  testSleep,
  scroll
} from "../lib/dom-test/lib/dom-test";

const test = () => {
  syncTest([
      inputString.bind(null, "element id", "test@xxx.com"),
      inputString.bind(null, "element id", "123456"),
      clickButton.bind(null, "element id"),
    ]);
}

syncTest([
      matchElement.bind(null, "element id", "expect string"),
      testSleep.bind(null, "sleeptime"),
      scroll.bind(null, x, y),
])

<button onclick={test}>Test</button>

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published