testcafe-sharepoint-helpers
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

TestCafé SharePoint Helpers

This package contains a set of helpers to perform End-2-End tests with TestCafé on a SharePoint Online environment with the modern experience.

Installation

Install the module in your solution:

npm i testcafe-sharepoint-helpers --save-dev

Usage

Import the module in your tests files:

import * as sp from 'testcafe-sharepoint-helpers';

Examples

Edit the SharePoint page

await sp.Page.edit();

Authentication

The module need environment variables or an .env file at the root folder of your app that contains:

SP_BASEURL=https://contoso.sharepoint.com
SP_USERNAME=testcafe@contoso.com
SP_PASSWORD=yoursuperpassword

Contributing

Code

Build and link module locally from the project:

npm link

Use local module to another project:

npm link testcafe-sharepoint-helpers

Documentation

Generate the Markdown documentation with TypeDoc:

npm run doc

Run the local MkDocs server:

mkdocs serve

Package Sidebar

Install

npm i testcafe-sharepoint-helpers

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

55.4 kB

Total Files

31

Last publish

Collaborators

  • lsittler