Package Exports
- nt-e2e-quickstart-testing
- nt-e2e-quickstart-testing/dist/index.js
- nt-e2e-quickstart-testing/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nt-e2e-quickstart-testing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
End to end testing
The e2e-quickstart-testing package includes pre-written test cases.
It's commonly used in many projects to streamline code sections that are repeated in multiple places with minimal variation.
Installing
Package manager
Using npm:
npm i playwright@latest nt-e2e-quickstart-testing --save-devOnce the package is installed, you can import the library using import or require approach:
import { login } from 'nt-e2e-quickstart-testing';Example:
import { test } from '@playwright/test';
import { login } from 'nt-e2e-quickstart-testing';
const data = {
email: 'test@test.com',
password: 'password',
placeHolder: {
email: 'username',
password: 'password'
},
submitBtnText: 'Submit',
baseUrl: 'http://localhost:3000/login'
}
test('Can login', async ({ page }) => {
await login(page, data);
});