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

AUT : fix activity feed and teamHierarchy playwright failure #17991

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

Ashish8689
Copy link
Contributor

Describe your changes:

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Copy link
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.38% (37427/58130) 41.1% (14873/36185) 43.14% (4515/10466)

Comment on lines +121 to +131
if (isReply) {
await page
.locator(FIRST_FEED_SELECTOR)
.locator('[data-testid="reply-count"]')
.click();
} else {
await page
.locator(FIRST_FEED_SELECTOR)
.locator('[data-testid="thread-count"]')
.click();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (isReply) {
await page
.locator(FIRST_FEED_SELECTOR)
.locator('[data-testid="reply-count"]')
.click();
} else {
await page
.locator(FIRST_FEED_SELECTOR)
.locator('[data-testid="thread-count"]')
.click();
}
await page
.locator(FIRST_FEED_SELECTOR)
.locator(`[data-testid=${isReply ? "reply-count" : "thread-count"}]`)
.click();

Copy link

@chirag-madlani chirag-madlani merged commit 9b45573 into main Sep 25, 2024
14 of 16 checks passed
@chirag-madlani chirag-madlani deleted the aut-failure branch September 25, 2024 18:28
chirag-madlani pushed a commit that referenced this pull request Sep 26, 2024
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
(cherry picked from commit 9b45573)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Add this label to run secure Github workflows on PRs UI UI specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants