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

[Tests: e2e]:Add basic end-to-end tests #35

Open
2 tasks done
bandantonio opened this issue Jul 15, 2024 · 0 comments
Open
2 tasks done

[Tests: e2e]:Add basic end-to-end tests #35

bandantonio opened this issue Jul 15, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bandantonio
Copy link
Owner

Feature Request Checklist

What feature would you like to request?

At this moment, the plugin has important functionality covered with unit tests, but there are no end-to-end tests yet to provide closer to real-life user experience. There are many repositories on GitHub doing e2e for Obsidian plugins, so I tried to follow this path as well.

Currently, the test/basic-e2e branch contains the initial (super basic) configuration for Electron in WebdriverIO that creates a test vault environment inside Obsidian for testing (check helpers.js)

The problem is that after launching tests, the initialization fails with the following error:

 Error: Can't call click on element with selector "div.modal.mod-trust-folder > div.modal-button-container > button:nth-child(1)" because element wasn't found
at async Object.initializeTestVault (/test/e2e/helpers.js:26:3)
at async Context.<anonymous> (/test/e2e/e2e.spec.js:4:2)

The selector is correct, so it's kinda tricky for me to understand what I'm doing wrong with the webdriver.

The perfect goals at this stage would be:

  1. Fix the initialization of the test vault configuration.
  2. Go to the plugin's settings and check that the default configuration is set.

Tip

❗️Anyone with QA/e2e experience are welcome to contribute. 🙏🎉

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bandantonio bandantonio added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jul 15, 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 good first issue Good for newcomers help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant