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

[MM-61233] Verify no error is shown when running slash commands #887

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

streamer45
Copy link
Collaborator

Summary

Adding some extra checks so that we could have caught this way sooner.

Ticket Link

https://mattermost.atlassian.net/browse/MM-61233

@@ -77,6 +77,7 @@ test.describe('start new call', () => {
await page.locator('#post_textbox').fill('/call leave');
await page.getByTestId('SendMessageButton').click();
await expect(page.locator('#calls-widget')).toBeHidden();
await expect(page.locator('#postCreateFooter .has-error')).toBeHidden();
Copy link
Member

Choose a reason for hiding this comment

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

nit: or not be visible? (because it's not really hidden...) 🤷

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cpoile Playwright semantic is the same though. It's just a bit more compact to use toBeHidden() vs not.toBeVisible().

Otherwise we'd have to use something like toBeAttached which specifically checks for presence in the DOM rather than visibility.

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Oct 24, 2024
@streamer45 streamer45 added this to the v1.3.0 / MM v10.3 milestone Oct 24, 2024
@streamer45 streamer45 merged commit 0760b54 into main Oct 24, 2024
19 checks passed
@streamer45 streamer45 deleted the MM-61233 branch October 24, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants