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

Add tests for custom fields on all entities #712

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

edlerd
Copy link
Collaborator

@edlerd edlerd commented Mar 25, 2024

Done

  • add tests for custom fields on instances, profiles, projects, networks, storage pools and storage volumes

Fixes WD-9656

QA

  1. Run the LXD-UI:
    • On the demo server via the link posted by @webteam-app below. This is only available for PRs created by collaborators of the repo. Ask @mas-who or @edlerd for access.
    • With a local copy of this branch, run as described here.
  2. Perform the following QA steps:
    • ensure test suite passes and includes the new tests

@webteam-app
Copy link

Demo starting at https://lxd-ui-712.demos.haus

@@ -8,6 +8,7 @@ export default mergeConfig(
sourcemap: "inline",
},
test: {
environment: "jsdom",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did face crashes on testing functions with custom CSS styles from react-components in the default environment node. The change to jsdom is emulating a more realistic browser environment. This resolved this issue. See also vite test docs on this.

@mas-who
Copy link
Collaborator

mas-who commented Mar 26, 2024

just some minor wording changes, although it's opinionated so feel free to disregard it if you feel like otherwise 🙂

…ts, networks, storage pools and storage volumes WD-9656

Signed-off-by: David Edler <david.edler@canonical.com>
@edlerd edlerd merged commit 47c1f06 into canonical:main Mar 27, 2024
9 checks passed
@edlerd edlerd deleted the tests-for-custom-fields branch March 27, 2024 09:13
github-actions bot pushed a commit that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants