0.0.5 • Published 3 years ago
testcafe-sharepoint-helpers v0.0.5
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-devUsage
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=yoursuperpasswordContributing
Code
Build and link module locally from the project:
npm linkUse local module to another project:
npm link testcafe-sharepoint-helpersDocumentation
Generate the Markdown documentation with TypeDoc:
npm run docRun the local MkDocs server:
mkdocs serve