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

DEV: make specs regarding assign button more lenient #621

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

ZogStriP
Copy link
Member

in preparation of discourse/discourse#30242 which might make the assign button appear immediately (when it's the only available option) or behind the "..." dropdown.

@CvX
Copy link
Contributor

CvX commented Dec 12, 2024

  1. Needs a linting fix
  2. Is it just in case core adds more buttons and then that turns into a dropdown? 🤔

@ZogStriP
Copy link
Member Author

  • Needs a linting fix

Done 👍

2. Is it just in case core adds more buttons and then that turns into a dropdown? 🤔

Yes, or that the specs are run with another plugins installed

@CvX
Copy link
Contributor

CvX commented Dec 12, 2024

Is there actual cross-contamination between plugin tests? are things enabled from other plugins/themes when running d-assign tests?

@ZogStriP
Copy link
Member Author

Is there actual cross-contamination between plugin tests? are things enabled from other plugins/themes when running d-assign tests?

Not in CI (AFAIK), but locally it might.

@CvX
Copy link
Contributor

CvX commented Dec 12, 2024

Locally shouldn't be an issue either - unless a test explicitly enables another plugin, its functionality should not be initialized.

In discourse/discourse#30242, the topic footer
buttons mobile dropdown can be replaced by the button if there's only
one option.

This fixes the spec that was clicking on the dropdown button before
checking there was no assign option.
@ZogStriP
Copy link
Member Author

@CvX that makes things even easier then 😅

Copy link
Contributor

@CvX CvX left a comment

Choose a reason for hiding this comment

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

that makes things even easier then 😅

love it 😁

@ZogStriP ZogStriP merged commit 568efb4 into main Dec 12, 2024
6 checks passed
@ZogStriP ZogStriP deleted the fix-specs branch December 12, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants