Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest + Playwright Testing #1276

Merged
merged 131 commits into from
Oct 5, 2020
Merged

Jest + Playwright Testing #1276

merged 131 commits into from
Oct 5, 2020

Commits on Jul 7, 2020

  1. Configuration menu
    Copy the full SHA
    6eb7c90 View commit details
    Browse the repository at this point in the history
  2. Fix eslint warnings

    jhildenbiddle committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    f299c26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e6a7b0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c35aea5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    08e1bbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a8c5cb7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5229727 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Configuration menu
    Copy the full SHA
    045e91e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83fd5fd View commit details
    Browse the repository at this point in the history
  3. Initial commit

    jhildenbiddle committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    f704f0b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    25747d6 View commit details
    Browse the repository at this point in the history
  5. Minor tweaks

    jhildenbiddle committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    e0dffb6 View commit details
    Browse the repository at this point in the history
  6. Change suite name

    jhildenbiddle committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    efab952 View commit details
    Browse the repository at this point in the history
  7. Rename file

    jhildenbiddle committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    2c7e66d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    36c5c33 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2020

  1. Configuration menu
    Copy the full SHA
    e8da21d View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. Isolate e2e, integration, and unit test environments

    - Setup projects for e2e, integration, and unit tests in Jest configuration
    - Setup /tests/e2e/ tests for Jest+PlayWright
    - Setup /tests/integration/ tests for Jest
    - Setup /tests/unit/ tests for Jest
    - Setup eslint for Jest and Jest+Playwright environments
    - Move e2e configuration files into separate folder
    - Update e2e example tests
    - Update unit example tests
    - Update HTML fixtures
    jhildenbiddle committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    aed09be View commit details
    Browse the repository at this point in the history
  2. Update docsifyInit helper

    - Add `debug` option
    - Append `Markdown` suffix to markdown-related options
    - Reorder options alphabetically
    jhildenbiddle committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    3ce73f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b7c54f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Configuration menu
    Copy the full SHA
    1ab3de2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d167031 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2020

  1. Configuration menu
    Copy the full SHA
    251119c View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. Configuration menu
    Copy the full SHA
    6dab0e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    359ead4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1adceac View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

  1. Configuration menu
    Copy the full SHA
    ff1a9f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b73f863 View commit details
    Browse the repository at this point in the history
  3. Add npm script to run Jest examples

    Added for new devs who are exploring the examples, as the need for passing --testPathIgnorePatterns is not obvious. This flag is required because the example tests are excluded by default.
    jhildenbiddle committed Jul 21, 2020
    Configuration menu
    Copy the full SHA
    38b0135 View commit details
    Browse the repository at this point in the history
  4. Remove node 10.x and add 14.x from tests

    Required for jest+playwright testitng
    jhildenbiddle committed Jul 21, 2020
    Configuration menu
    Copy the full SHA
    5cf9e83 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2020

  1. Configuration menu
    Copy the full SHA
    734a257 View commit details
    Browse the repository at this point in the history
  2. Temporarily remove node 14 from matrix

    Cypress fails on node 14.x
    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    47dc27a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    adb9862 View commit details
    Browse the repository at this point in the history
  4. Update workflow platforms and node versions

    Also cleaning up naming
    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    e0e7153 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe9f7c6 View commit details
    Browse the repository at this point in the history
  6. Remove Cypress tests

    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    181f6e7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    154540c View commit details
    Browse the repository at this point in the history
  8. Restore/reset workflows

    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    7e12c5a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b2fe355 View commit details
    Browse the repository at this point in the history
  10. Use playright GH action

    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    aafca2a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a62098b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c1aa72b View commit details
    Browse the repository at this point in the history
  13. Add install step

    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    3cb7dbb View commit details
    Browse the repository at this point in the history
  14. Add --ignore-scripts flag

    Linting does not require running scripts automatically executred after install.
    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    c570757 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e05aa3e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a26aae9 View commit details
    Browse the repository at this point in the history
  17. Add OS tests

    jhildenbiddle committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    f5aed8a View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2020

  1. Configuration menu
    Copy the full SHA
    34c6c04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b50385c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b407a1c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ba80d56 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dfa5b54 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    456ed6d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2b521aa View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a91634e View commit details
    Browse the repository at this point in the history
  9. Set diffDirection

    jhildenbiddle committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    5b5c895 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4659b4b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9be0ffc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    efead40 View commit details
    Browse the repository at this point in the history
  13. Remove old workflows

    jhildenbiddle committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    17628a6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8b2a40f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    45937cd View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    cc64d07 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9754cf9 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    cbc5697 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    7bd9156 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    07ef151 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ef4e739 View commit details
    Browse the repository at this point in the history
  22. Rename workflow

    jhildenbiddle committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    8903cba View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1c75d81 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    8f21d5e View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    8c9aef7 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    ee87b23 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    62b3ab9 View commit details
    Browse the repository at this point in the history
  28. Update test.yml

    jhildenbiddle authored Jul 23, 2020
    Configuration menu
    Copy the full SHA
    9e27b99 View commit details
    Browse the repository at this point in the history
  29. Update test.yml

    jhildenbiddle authored Jul 23, 2020
    Configuration menu
    Copy the full SHA
    e2e8c12 View commit details
    Browse the repository at this point in the history
  30. Update test.yml

    jhildenbiddle authored Jul 23, 2020
    Configuration menu
    Copy the full SHA
    7068b19 View commit details
    Browse the repository at this point in the history
  31. Fix --ci flag

    jhildenbiddle committed Jul 23, 2020
    Configuration menu
    Copy the full SHA
    a894851 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    f054322 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    65375c3 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    77e3c9d View commit details
    Browse the repository at this point in the history
  35. Update test.yml

    jhildenbiddle authored Jul 23, 2020
    Configuration menu
    Copy the full SHA
    18183ad View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2020

  1. Configuration menu
    Copy the full SHA
    cf3f612 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b6b6e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9cfcc43 View commit details
    Browse the repository at this point in the history
  4. Revert "Remove node version from diff artifact"

    This reverts commit 9cfcc43.
    jhildenbiddle committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    ad6c189 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5aaa259 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    862bcc9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    667ed6c View commit details
    Browse the repository at this point in the history
  8. Revert "Remove runInProcess option"

    This reverts commit 667ed6c.
    jhildenbiddle committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    80a3873 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0d402d6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cf45c2b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    315226f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d871d46 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7b320b0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    79d141b View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2020

  1. Configuration menu
    Copy the full SHA
    90edd84 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71576f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. Configuration menu
    Copy the full SHA
    4cfbe04 View commit details
    Browse the repository at this point in the history
  2. Update script for running local docs site

    - Only init GA plugin on public site
    - Only init Gitter plugin on public site
    - Only init Matomo plugin on public site
    
    NOTE: Large diff is a result of initial Prettier formatting. Actual change limited to last <script> block on page.
    jhildenbiddle committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    275fa61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70d1451 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2020

  1. Configuration menu
    Copy the full SHA
    dedca07 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into jest-playwright

    # Conflicts:
    #	docs/index.html
    jhildenbiddle committed Aug 3, 2020
    Configuration menu
    Copy the full SHA
    209ce4f View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Unify docsifyInit() and cleanup

    - Create unified docsifyInit() for jest and playwright
    - Move shared helpers to /tests/helpers
    - Update tests
    - Update globals
    jhildenbiddle committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    512762d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5e2335 View commit details
    Browse the repository at this point in the history
  3. Update snapshot

    jhildenbiddle committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    b64eb8b View commit details
    Browse the repository at this point in the history
  4. Update dependencies

    jhildenbiddle committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    a099160 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6fb809 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2da83e3 View commit details
    Browse the repository at this point in the history
  7. Update tests to run (unit/integration/e2e)

    - Add new integration tests (Jest)
    - Remove old unit tests (mocha+jsdom)
    - Remove old e2e tests (Cypress)
    jhildenbiddle committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    7b71b65 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    64e2989 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4be2845 View commit details
    Browse the repository at this point in the history
  10. Rename testing directories and scripts

    - Rename /tests/ directory to /test/
    - Rename script/task names by removing “jest” identifier
    - Remove “test:jest-examples” script
    jhildenbiddle committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    f3f357c View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2020

  1. - Configure test server for availability with all tests (previously e…

    …2e only)
    
    - Create identical docsifyInit() tests using Jest (integration) and Playwright (e2e)
    - Update docsifyInit() to convert relative URLs to absolute URLs to work in both JSDOM and Playwright
    - Update docsifyInit() to append style- and js-related tags using createElement instead of insertAdjacentHTML
    - Update paths in test files to use unified docsifyInit()
    - Added option to docsifyInit() to enable/disable formatted HTML output to console
    - Removed vue.css as default docsify theme from docsifyInit()
    - Removed outdated files
    jhildenbiddle committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    0826148 View commit details
    Browse the repository at this point in the history
  2. Reorganize test files

    jhildenbiddle committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    4fec434 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2020

  1. Fix basePath option

    jhildenbiddle committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    da36452 View commit details
    Browse the repository at this point in the history
  2. Replace do-mock-ajax with xhr-mock

    - Allows mocking all XMLHttpRequests instead of just those initiated via /src/core/fetch/ajax.js
    - Allows JSDOM tests to use /lib/docsify.js instead of /src/core/index.js (same as Playwright tests)
    - Allows JSDOM tests to use /docs site as test content
    jhildenbiddle committed Sep 26, 2020
    Configuration menu
    Copy the full SHA
    97399e4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4887ae View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2020

  1. Clean up globals

    - Import globals from various files instead of manually adding them to ensure they are availability in Jest and eslint configurations
    - Add middleware to server configuration for serving virtual “_blank.html” file
    - Add BLANK_URL
    - Rename TEST_URL to TEST_HOST
    - Removed ./test/fixtures/ directory (blank page now served via server.js middleware)
    - Added page.goto(BLANK_URL) call to global Playwright beforeEach() setup
    jhildenbiddle committed Sep 30, 2020
    Configuration menu
    Copy the full SHA
    10e0e80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cbfc0a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79aeaa9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    473bb5a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2440a0c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9f5e562 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2020

  1. Merge develop

    jhildenbiddle committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    f6c34f8 View commit details
    Browse the repository at this point in the history
  2. Cleanup

    - Relocate carbon plugin script with other scripts
    - Update zh-cn docs URL to align with other translatins (GitHub, not jsdelivr)
    - Add major version locks to URLs
    jhildenbiddle committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    0983d53 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Configuration menu
    Copy the full SHA
    5ccea9d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af71553 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1c365fb View commit details
    Browse the repository at this point in the history
  4. Merge branch 'develop' into jest-playwright

    # Conflicts:
    #	cypress/fixtures/tpl/docs.index.html
    #	docs/index.html
    #	package-lock.json
    #	test/unit/render.test.js
    jhildenbiddle committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    4623677 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    befa408 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d58b3ad View commit details
    Browse the repository at this point in the history