Skip to content

issue-470 - favoritar contas #1498

issue-470 - favoritar contas

issue-470 - favoritar contas #1498

Triggered via pull request August 20, 2024 00:53
@juliaamjuliaam
synchronize #575
issue-470
Status Failure
Total duration 55s
Artifacts

main.yml

on: pull_request
e2e  /  playwright-tests
e2e / playwright-tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts > useSocialMediaStore > populates the socialMedias store from user accounts data: src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts#L88
AssertionError: expected Map{ …(3) } to deeply equal Map{ …(2) } - Expected + Received Map { "DISCORD_EXAMPLE_ID" => Object { "icon": "discord-icon", "id": "DISCORD_EXAMPLE_ID", "name": "Discord", }, + "FAVORITE_ACCOUNTS" => Object { + "icon": "Icon", + "id": "FAVORITE_ACCOUNTS", + "name": "Favorite Accounts", + "postModes": Array [], + }, "TWITTER_EXAMPLE_ID" => Object { "icon": "twitter-icon", "id": "TWITTER_EXAMPLE_ID", "name": "Twitter", }, } ❯ src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts:88:41
src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts > useSocialMediaStore > checks if getAllAccounts correctly retrieves and validates social media accounts: src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts#L131
AssertionError: expected { …(3) } to deeply equal { …(2) } - Expected + Received Object { "DISCORD_EXAMPLE_ID": Array [ Object { "avatar": "https://example.com/image1.jpg", "expiresAt": "Fri May 17 2024 22:57:54 GMT-0300 (Brasilia Standard Time)", "generatedAt": "Fri May 17 2024 22:57:54 GMT-0300 (Brasilia Standard Time)", "id": 1, "socialMediaId": "DISCORD_EXAMPLE_ID", "token": "DISCORD_EXAMPLE_TOKEN_1", "userName": "Discord User 1", "valid": true, }, ], + "FAVORITE_ACCOUNTS": Array [], "TWITTER_EXAMPLE_ID": Array [ Object { "avatar": "https://example.com/image2.jpg", "expiresAt": "Fri May 17 2024 22:57:54 GMT-0300 (Brasilia Standard Time)", "generatedAt": "Fri May 17 2024 22:57:54 GMT-0300 (Brasilia Standard Time)", "id": 14, "socialMediaId": "TWITTER_EXAMPLE_ID", "token": "TWITTER_EXAMPLE_TOKEN_14", "userName": "Twitter User 14", "valid": true, }, ], } ❯ src/stores/useSocialMediaStore/useSocialMediaStore.spec.ts:131:42
src/pages/home/components/Sidebar/Sidebar.spec.tsx > Sidebar component > renders favorites accounts when exists in store: src/pages/home/components/Sidebar/Sidebar.spec.tsx#L81
TestingLibraryElementError: Unable to find an element with the text: Favorite Accounts. 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 style="overflow: auto;" > <div> <div class="container" > <section class="container mobile openMobile container" > <div class="header" > <div class="header" > <p class="headerTitle" > Select Social Media </p> </div> </div> <div class="content" style="height: auto;" > <div class="content" > <div class="container" > <div class="inputWrapper" > <label class="label" > Search for social media </label> <div class="iconLeft" > <img alt="left icon" src="/src/components/InputSearch/assets/leftIcon.svg" /> </div> <input class="input" placeholder="Search for social media" required="" value="" /> <fieldset aria-hidden="true" class="fieldset" > <legend class="legend" > <span class="legendTitle" > Search for social media </span> </legend> </fieldset> </div> </div> <div class="accordionContainer" > <section class="wrapper container" > <div class="header" > <button aria-controls="content-accordion" aria-expanded="false" class="container" id="btn-accordion" > <div class="header" > <div class="socialInfo" > <img alt="social media" class="icon" src="/src/pages/home/components/Sidebar/components/SocialAccordion/assets/facebook.svg" /> <span /> </div> <div class="accordionInfo" > <svg class="alertIcon" fill="none" height="16" role="img" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg" > <path clip-rule="evenodd" d="M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V13H11V15H9ZM9 5V11H11V5H9Z" fill="currentColor" fill-rule="evenodd" /> </svg> <svg aria-label="Accordion is closed" class="rotateIconDown" height="16" role="img" viewBox="0 0 5 10" width="16"
build
Process completed with exit code 1.
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/