-
Notifications
You must be signed in to change notification settings - Fork 88
Fix GitLab #194
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
Fix GitLab #194
Conversation
@filiptronicek build is failing |
Verified locally that all tests are passing:
|
src/button/button-contributions.ts
Outdated
match: /\/issues\//, | ||
selector: | ||
"#content-body > div.issue-details.issuable-details.js-issue-details > div.detail-page-description.content-block.js-detail-page-description.gl-pt-3.gl-pb-0.gl-border-none > div:nth-child(1) > div > div.gl-flex.gl-items-start.gl-flex-col.md\\:gl-flex-row.gl-gap-3.gl-pt-3 > div", | ||
selector: "xpath://*[@id='content-body']/div[2]/div/section/section/div[2]/div[1]/div[2]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L252 applies to existing issues, not newly created issues.
Perhaps we can make a duplicate entry, but with a slightly different selector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylos101 in the end, I found a selector that works for both, utilizing their data-testid
attributes on elements. Let's cross our fingers that GitLab keeps those stable 🤞
Do you use a different Node version locally? In the Gitpod workspace and the CI build, we use Node 20.x and the test fails.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised. ✔️
I use Node 20. Will take a look why this might be happening, but will do so outside of this PR. |
Description
Fix GitLab selectors for MRs and issues. Additionally, inherits new GitLab dark mode styles for a stylish night look
Related Issue(s)
Fixes NEXT-4008