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

Fix browser not found err in TestBrowserPermissions #3538

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

inancgumus
Copy link
Member

@inancgumus inancgumus commented Jan 12, 2024

What?

Fixes TestBrowserPermissions failure. Expects the fake command to be in the error message rather than looking for the entire message to be more resilient for future changes.

Why?

We've changed the browser not found error message in grafana/xk6-browser#1136. So, this PR (#3537) that includes the new changes currently fails without this fix.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint), and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

grafana/xk6-browser#1136

Keeping the expected error message to contain a minimal part of the
error so that if we change the error again, this test won't bail.

Related: grafana/xk6-browser#1136
@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (04a8119) 72.54% compared to head (525c919) 72.52%.

❗ Current head 525c919 differs from pull request most recent head 09d9e1c. Consider uploading reports for the commit 09d9e1c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3538      +/-   ##
==========================================
- Coverage   72.54%   72.52%   -0.02%     
==========================================
  Files         280      280              
  Lines       20938    20938              
==========================================
- Hits        15189    15186       -3     
- Misses       4778     4781       +3     
  Partials      971      971              
Flag Coverage Δ
ubuntu 72.47% <ø> (-0.02%) ⬇️
windows 72.38% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@inancgumus inancgumus marked this pull request as ready for review January 12, 2024 10:33
@inancgumus inancgumus requested a review from a team as a code owner January 12, 2024 10:33
@inancgumus inancgumus requested review from codebien and joanlopez and removed request for a team January 12, 2024 10:33
@inancgumus inancgumus self-assigned this Jan 12, 2024
@mstoykov mstoykov merged commit 5a8879c into master Jan 12, 2024
21 checks passed
@mstoykov mstoykov deleted the fix/browser-err-msg-in-test branch January 12, 2024 12:36
@olegbespalov olegbespalov added this to the v0.49.0 milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants