-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Turn editor tests back on after getting them to pass (Outreachy related) #8858
Comments
Hi @Uzay-G - i hope you're well - i've turned off these tests as i couldn't get them to work in Github Actions... do you have any ideas or suggestions as to why we aren't seeing them working? I remember you added them originally. I've moved the file to: plots2/test/system/editor_test.rb Lines 15 to 80 in 6e0d55f
Thank you! |
As I mentioned, I was checking into these and found that this text plots2/test/system/editor_test.rb Line 17 in f82a11c
is no longer rendered on that page...causing a couple of these to fail...also a lot of names, divs and ids have changed as @noi5e mentioned above Also a couple of these scenarios are tested here https://github.com/publiclab/plots2/blame/main/test/system/post_test.rb so we could remove the tests already covered inline with what Will was talking about |
This may or may not be related, but I was asking in the meeting today... Is it even possible to access the legacy editor through All of these appear to be using the rich-text editor (I think?). I can't find a link or other way to access the legacy editor in these pages... @jywarren Do you see the same things when you visit these pages? We were talking in the meeting about maybe admins or senior user accounts might still have access to the legacy editor. This does affect Comment Editor work at #8775, because scripts like I also acknowledge that I may not actually know what the phrase "legacy editor" refers to... Like, maybe I've never even seen one live!
Does this count as a legacy editor? |
@cesswairimu i see so maybe what happened is that the tests being in a nonstandard location meant that they weren't running at all before and slowly drifted out of being in sync with the actual pages. Then once we moved them back they activated but were no longer appropriate for the latest page markup? |
Agreed though let's remove what's redundant and trim the rest, if possible! |
Wonderful! that totally explains it Jeff |
the one bit i'm sure of is that |
Thanks for investigating this one Cess! Great job! |
@noi5e did Cess's comments in the chatroom clarify things? I think sharing screenshots of both states will help disambiguate, if not. What do you think of leaving these tests off? Or, of how they might be redundant with tests you're writing? |
@jywarren I have greater clarity about legacy vs rich text editor now! I don't think system tests for the rich-text editor will affect my work much. It seems like the rich-text editor is using separate JavaScripts? I'm more trying to catch instances of the legacy editor that still require Regarding this issue: yes, we can leave the tests off, if it makes sense. I agree, it seems like these tests just became inaccurate after being unused, and now just need to be rewritten with different selectors (doesn't seem like a lot of work TBH) |
OK. Let's close this and if there are opportunities to rebuild those tests that's fine as well. Thanks, all! |
Thanks Jeff, should I create an issue to add a link to the beta editor or we are good for now? |
To finish moving off Travis and into GitHub Actions in #8795, I turned off all 4 tests in
/test/system/editor_test.rb
Here's the commit:
8bbbaf8
We just need to turn them back on and figure out why they aren't passing; here are the errors:
The text was updated successfully, but these errors were encountered: