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

chore: pass headers to request #130

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Conversation

ashleythedeveloper
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR adds the ability to pass custom headers to requests across the tier 1 test suite. This update allows users to specify headers such as authorization tokens in the configuration, making the test suites more flexible when interacting with services that require specific HTTP headers.

It also includes relevant documentation updates and test cases to validate this new feature, ensuring headers are plain objects and that they are passed correctly in requests.

NOTE: It has been uncovered that the render tests are failing. This was hidden due to the authorisation error this PR seeks to resolve. Another PR will be raised to fix the tests.

Mobile & Desktop Screenshots/Recordings

Screenshot 2024-10-22 at 10 03 14β€―PM Screenshot 2024-10-22 at 10 03 18β€―PM Screenshot 2024-10-22 at 10 03 25β€―PM

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ¦– Documentation Site
  • πŸ™… no documentation needed

Copy link

github-actions bot commented Oct 22, 2024

Coverage report

St.❔
Category Percentage Covered / Total
🟒 Statements 100% 0/0
🟒 Branches 100% 0/0
🟒 Functions 100% 0/0
🟒 Lines 100% 0/0

Test suite run success

0 tests passing in 0 suite.

Report generated by πŸ§ͺjest coverage report action from 9d6d775

ldhyen99
ldhyen99 previously approved these changes Oct 29, 2024
Copy link

github-actions bot commented Oct 29, 2024

Code Coverage Report

Lines Statements Branches Functions
Coverage: 79%
77.73% (2716/3494) 62.33% (518/831) 74.15% (307/414)
Title Lines Statements Branches Functions
All packages Coverage: 79%
77.73% (2716/3494) 62.33% (518/831) 74.15% (307/414)
Components Coverage: 85%
84.85% (510/601) 73.75% (118/160) 77.04% (94/122)
Mock app Coverage: 68%
69.18% (348/503) 48.41% (61/126) 67.56% (75/111)
Services Coverage: 75%
70.64% (881/1247) 52.6% (202/384) 75.19% (97/129)
UNTP test suite Coverage: 57%
57.78% (991/1715) 82.53% (137/166) 71.92% (41/57)
VC test suite Coverage: 8%
7.69% (12/156) 7.4% (2/27)

namhoang1604
namhoang1604 previously approved these changes Oct 29, 2024
huynguyen-hl
huynguyen-hl previously approved these changes Oct 29, 2024
@namhoang1604 namhoang1604 dismissed stale reviews from huynguyen-hl, ldhyen99, and themself via f0e9ac6 October 29, 2024 10:39
@namhoang1604 namhoang1604 merged commit 93f2076 into next Oct 31, 2024
1 check passed
@namhoang1604 namhoang1604 deleted the chore/pass_headers_to_request branch October 31, 2024 01:36
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.

4 participants