Skip to content

bookmarkcard.tsx and test.tsx file changed #422

bookmarkcard.tsx and test.tsx file changed

bookmarkcard.tsx and test.tsx file changed #422

Triggered via pull request February 12, 2025 17:10
Status Failure
Total duration 3m 19s
Artifacts

sonar.yml

on: pull_request
SonarQube Server
3m 7s
SonarQube Server
sonarQube Frontend
41s
sonarQube Frontend
SonarQube Screenshot
1m 49s
SonarQube Screenshot
Fit to window
Zoom out
Zoom in

Annotations

4 errors
__tests__/Bookmark/NewBookmarkCard.test.tsx > Success Toast > displays a green success toast when bookmark is added successfully: frontend/__tests__/Bookmark/NewBookmarkCard.test.tsx#L349
TestingLibraryElementError: Unable to find an element with the text: Bookmark added successfully!. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="row pt-3" data-bs-theme="dark" > <div class="col-6 col-sm-12 col-md-12 col-lg-4" > <div class="_main_ba4702" > <form action="#" > <div class="card _newBookmarkCard_ba4702 undefined" > <div class="card-header" > Add Bookmark <i class="bi bi-bookmarks-fill" /> </div> <div class="card-body" > <div class="card-text _title_ba4702" > <input class="form-control" id="url" name="url" placeholder="url: https://findfirst.com/discover" type="text" value="" /> </div> </div> <div class="card-footer _cardFooter_ba4702 " > <div class="_container_ba4702" > <input class="_input_ba4702" data-testid="new-bk-tag-input" placeholder="Enter a tag" value="" /> </div> <button class="_formButton_ba4702 _submit_ba4702" disabled="" type="submit" > Submit </button> <button class="_formButton_ba4702 _reset_ba4702" type="reset" > Reset </button> </div> </div> </form> <section aria-atomic="false" aria-label="Notifications Alt+T" aria-live="polite" aria-relevant="additions text" class="Toastify" /> </div> </div> </div> </div> </body> Ignored nodes: comments, script, style <body> <div> <div class="row pt-3" data-bs-theme="dark" > <div class="col-6 col-sm-12 col-md-12 col-lg-4" > <div class="_main_ba4702" > <form action="#" > <div class="card _newBookmarkCard_ba4702 undefined" > <div class="card-header" > Add Bookmark <i class="bi bi-bookmarks-fill" /> </div> <div class="card-body" > <div class="card-text _title_ba4702" > <input class="form-control" id="url" name="url" placeholder="url: https://findfirst.com/discover" type="text" value="" /> </div> </div> <div class="card-footer _cardFooter_ba4702 " > <div class="_container_ba4702" > <input class="_input_ba4702" data-testid="new-bk-tag-input" placeholder="Enter a tag" value="" /> </div> <button class="_formButton_ba4702 _submit_ba4702"
sonarQube Frontend
Process completed with exit code 1.
SonarQube Screenshot
Process completed with exit code 1.
SonarQube Server
Process completed with exit code 1.