-
Notifications
You must be signed in to change notification settings - Fork 0
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
[POC] Integrate the E2E test utils with mattermost-plugin-todo
project
#2
Comments
Mattermost Plugin E2E Test Utils ConfigurationIn the branch created I added a playwright configuration using the normal setup in the Playwright documentation. After that, I added the utility code that was in the based PR reference in the above post that includes the This code creates Docker containers behind the scenes to start up a Mattermost server container to test things. (I'll need to confirm that yet) And then I exported these utilities on the Mattermost Plugin TodoAfter doing these initial configurations described above, I was able to reference the e2e test utils project inside the I did an initial playwright configuration just like the above on a After that, I created a But when I ran the test, I had a problem because the
From what I understood, this seemed to be a Probably we will need to make this agnostic of the project and this structure will need to change. That's what I'm going to work on right now. My initial idea with this is to try to create the simplest version of the PR and run the tests just to see if this works, so now I'll probably need to work on configuring and changing more things to make a simple TODO plugin test pass. |
The So in order for
Awesome 🎉 Feel free to braindump here if anything comes up that you want to discuss 👍 Excellent work Lucas!! |
Nice, thanks for your thought. Do you have any idea how we should approach this? since the Maybe we would need to pass a path for the I'll try to come up with something easy. |
@panoramix360 I'm not sure I understand. The code you linked above makes no assumptions about the plugin id right? I think it should work with every plugin, as long as the e2e test directory structure is consistent among the projects. |
Not on this part that I inserted here, but in another place it has a reference to the mteams plugin, but that's not the issue. The issue here is:
But I'll think about something, so we can have a path passed by an argument maybe that uses an absolute path to read the file. What do you think? |
@panoramix360 I'm not sure if it works that way with a relative path. When we run So if we run |
@panoramix360 If you want we can have a meeting to give you my POV about it, and even do some pairing to move this forward. |
hey @jespino and @mickmister first, it seems that the relative path of readdirSync is using the directory inside the e2e-utils and not on the plugin-todo, but I'll test more today. @jespino, I'd be glad to have a meeting about it :D can we schedule on Mattermost Community? maybe @mickmister will want to participate as well |
@panoramix360 sure, let's do it. |
@mickmister it worked! I managed to pass the path to the |
hey! I configured the tests in a branch inside the And this is the initial test:
This test is passing 🥳 @mickmister what do we go from here? maybe creating more tests so we can have some parts of the |
hey!
I'll post my discoveries in the
mattermost-plugin-e2e-test-utils
integration with themattermost-plugin-todo
project here.The idea behind this is:
Some of the initial code is being based on this PR mattermost/mattermost-plugin-msteams#459
The branch I created to test these things is:
feature/playwright-setup
Feel free to take a look at it right now.
I'll write a next comment/post with the initial discoveries.
The text was updated successfully, but these errors were encountered: