0.0.5 • Published 1 year ago

testcafe-sharepoint-helpers v0.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

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