npm.io
0.38.0 • Published 2 years ago

@clds/e2e

Licence
Version
0.38.0
Deps
0
Size
150 kB
Vulns
0
Weekly
0

@clds/e2e


npm version

Mixins

This package contains common E2E factories (mixins) that can be used when creating agnostic E2E drivers.
Each factory can add one or more functions to the driver, those functions can be used later to interact with the relevant component

** mixins that do not return any value can be concat in the following way:**

import { makeClickable } from '@clds/e2e-ds-utils';

const createDriver = <A, B>(adapter: Adapter<A, B>) => {
  const selector = 'div[data-test="our-component"]' as const;

  return {
    ...makeClickable(adapter, selector),
    selector,
  };
};
Drivers

This package contains e2e drivers for all the components as well

Versioning

This library follows Semantic Versioning.

License

See LICENSE