JSPM

nt-e2e-quickstart-testing

1.0.6
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q16328F
    • License ISC

    Common end-to-end tests for techies

    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-dev

    Once 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);
    });

    License

    MIT License