testcafe-sharepoint-helpers
v0.0.5
Published
SharePoint Helpers for TestCafé e2e tests
Downloads
12
Maintainers
Readme
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
[email protected]
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