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

Update CSS selector for base repository on gitlab.com #185

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

RicePatrick
Copy link
Contributor

@RicePatrick RicePatrick commented Jan 31, 2025

Description

This Pull Request fixes a broken CSS selector that caused the "Open" button to not appear on the base repository view on GitLab. The MR view worked properly still.

How to test

The tests were updated to address puppeteer version changes (and one typescript oddity). Using pnpm build and pnpm package on firefox now requires using Firefox Developer Edition due to package signature requirements.

/hold

Fixes CLC-1116

@RicePatrick
Copy link
Contributor Author

Manually tested using Firefox developer edition to confirm the issue is fixed (note the "could not be verified" confirming it's running the locally built/packaged version):

image

@@ -78,7 +78,7 @@ describe("Query Selector Tests", function () {

async function resolveSelector(page: Page, selector: string) {
if (selector.startsWith("xpath:")) {
return (await page.$x(selector.slice(6)))[0] || null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just fixes an issue where depending on how quickly the typescript plugin initializes in VSCode, you can get a Property '$x' does not exist on type 'Page' error when running pnpm test

Copy link
Member

@filiptronicek filiptronicek left a comment

Choose a reason for hiding this comment

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

Hey @RicePatrick 👋, looks like you beat me to it 😄.

Works as advertised and code looks great, let's ship it!

@filiptronicek filiptronicek merged commit 5f85ef5 into gitpod-io:main Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants