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

Automated Testing: Build First Test #3

Closed
Tracked by #2
kgar opened this issue Nov 1, 2023 · 1 comment
Closed
Tracked by #2

Automated Testing: Build First Test #3

kgar opened this issue Nov 1, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request testing Relates to testing efforts

Comments

@kgar
Copy link
Owner

kgar commented Nov 1, 2023

Establish the core tech and approach to running these tests.
Code a single test which rolls a Perception check and confirms the roll has successfully been added to the chat window.

Getting this test bootstrapped

  • Select a testing library (thinking about Jest)
  • This is a browser-based test, so select a browser automation library to use (thinking about Playwright)
  • Target a Foundry instance via URL, provide credentials, etc., from environment variables
  • Perform necessary pre-test setups
    • Establish/import a player character

Test steps

  • Open the sheet
  • Roll Perception -> Normal
  • Confirm the roll result is placed into the chat tab
  • Clear the chat log
  • Close the sheet
@kgar kgar mentioned this issue Nov 1, 2023
6 tasks
@kgar kgar changed the title Establish the core tech and approach to running these tests. Code a single test which rolls a Perception check. Automated Testing: Build First Test Nov 1, 2023
@kgar kgar added testing Relates to testing efforts enhancement New feature or request labels Nov 1, 2023
@kgar kgar self-assigned this Jan 24, 2024
kgar added a commit that referenced this issue Feb 3, 2024
…wright (#274)

* Added playwright and began work on a basic smoke test and basline setup.

* Updated workspace recommendations.

* Passed the smoke test to ensure Tidy is activated in a test world.

* Coded out the rest of Foundry initial world config and actor setup.

Finished smoke test of rolling a strength check and verifying the results.

* Removed demo test.

* Removed example test.
@kgar kgar added awaiting-release This is awaiting release and removed awaiting-release This is awaiting release labels May 18, 2024
@kgar
Copy link
Owner Author

kgar commented May 18, 2024

The initial framework for Tidy automated testing is now here in main branch.
The first suite of tests relate to native CCSS.

@kgar kgar closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing Relates to testing efforts
Projects
None yet
Development

No branches or pull requests

1 participant