Closed yuney-worx4you closed 1 month ago
@yuney-worx4you I think to have the playwright test run for CI, a workflow file needs to be added. See here for an example. You can probably use that one as is.
Yup just added it now! Thanks @wiggin77
@yuney-worx4you it looks like there is some mattermost-plugin-todo
specific paths in there that need to be updated for this plugin.
Hi @saturninoabril thank you so much for your review!
I have made the requested changes but can't run the tests successfully locally.
Looks like it's due to Error: Cannot find module '@e2e-test.playwright-config'
How can I fix this error? Would it be because my support folder is currently empty?
Test passes locally! @saturninoabril
@yuney-worx4you in CI, it failed on ci/check in Playwright due to formatting issue. You may fix by npm run prettier:fix
.
@saturninoabril can you help with the remaining error?
Now passed the previous error but failed on actual tests. The legal hold plugin is inactive during test and so it needs to activate/enable similar to how it's done here. I'll take a look next, just need to go offline for a while.
Cool thanks Saturn!! I don't have write access to the repository so can't merge it myself. Would you be able to either give me access or merge it pleaes? Thank you!
All passed now.
Let's wait for another review from @wiggin77.
Summary
Adding intial setup of Playwright e2e tests for the Legal Hold plugin.
Configurations are identical to the 'todo' plugin.
Current issues
Compared to the manual flow, I noticed a few anomalies in the automation flow.
#react-select-2-input
.div:nth-child(10) > a:nth-child(2)