-
Notifications
You must be signed in to change notification settings - Fork 88
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
Adds tests for Wishes and Donors sections on the top of Campaign page #1646
Merged
igoychev
merged 5 commits into
podkrepi-bg:master
from
kzhecheva:show-wishes-on-the-top-of-campaign-page-tests
Nov 7, 2023
Merged
Adds tests for Wishes and Donors sections on the top of Campaign page #1646
igoychev
merged 5 commits into
podkrepi-bg:master
from
kzhecheva:show-wishes-on-the-top-of-campaign-page-tests
Nov 7, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Tests will run for this PR. Once they succeed it can be merged. |
github-actions
bot
removed
the
run tests
Allows running the tests workflows for forked repos
label
Nov 7, 2023
igoychev
approved these changes
Nov 7, 2023
tongo-angelov
pushed a commit
to tongo-angelov/frontend
that referenced
this pull request
Nov 14, 2023
…podkrepi-bg#1646) * feat: adds campaign summary section tests
RalitsaIlieva
pushed a commit
to RalitsaIlieva/frontend
that referenced
this pull request
Dec 15, 2023
…podkrepi-bg#1646) * feat: adds campaign summary section tests
ani-kalpachka
added a commit
that referenced
this pull request
Jan 3, 2024
* New design for campaign news subscription * format change * lint fix * news notifications added * buttons for notification commented * Uncommented buttons for notifications * lint fix * small fixes * [#1554] headings font size bug fixes (#1613) * headings font size bug fixes * removed library from package.json * Terms and GDPR added in the registerForm (#1617) * Terms and GDPR added in the registerForm * Format check added * Some error messages added in the RegisterForm * add RalitsaIlieva as a contributor for code (#1618) * update README.md [skip ci] * update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * New font Commissioner (#1620) Co-authored-by: igoychev <igoychev@gmail.com> * Update BG text for Reports page (#1621) Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * Update team members (#1622) Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * fix: rounds correctly Donated money value in Statistics section (#1623) * build(deps): bump @babel/traverse from 7.22.8 to 7.23.2 (#1624) Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade of translation libraries and related (#1616) * upgraded NextJS to fix dependabot vulnerability warnings * fixed linter and formatting * reverted next to 13.4.12, updated MUI and translation libraries * upgraded playwright to latest * fixed language change and corrected decimal separators * forced resolution for postcss and zod to fix security recommendations * added locale for tests to fix decimal separator mixups * donation amount changed to integer to avoid language specific decimal separators * upgraded node to v20 * fixing the docker build context to use the already checked out code from github checkout action * Update mobile Guarantors slider (#1629) * Update Guarantors slider * Revert unnecessary changes --------- Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * Update alignment of Bank details on Donation (mobile) (#1628) * Update bank details on donation * Update reasoning --------- Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * build(deps): bump crypto-js from 4.1.1 to 4.2.0 (#1630) Bumps [crypto-js](https://github.com/brix/crypto-js) from 4.1.1 to 4.2.0. - [Commits](brix/crypto-js@4.1.1...4.2.0) --- updated-dependencies: - dependency-name: crypto-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade next version to 13.5.4 (#1631) * Update next version to 13.5.4 * i18n: Fix translations not working for dynamic paths * i18next.config: Detect user's locale from NEXT_LOCALE cookie * added cookies consent banner (#1634) * Update completed campaigns carousel (#1639) Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * [Stripe] Add refund functionality (#1635) * Add refund button * Add refundStore * Fix prettier problem * Remove log * Fix typos * refundClickClickHandler -> refundClickHandler * Show extPaymentId in confirmation box * Fix button typo * Show wishes on the top of campaign page (#1633) * fix: shows tabs for donors and wishes * fix: wishes tab shows messages and pagination * fix: adds btn 'Show all' to wishes tab, align wishes array * fix: InfoIcon align * fix: shuffle wishes array * fix: clear unused classes * Add Finance report for 2022 (#1642) Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * add kzhecheva as a contributor for code (#1643) * update README.md [skip ci] * update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * format change * lint fix * news notifications added * buttons for notification commented * Uncommented buttons for notifications * Update Cookie consent popup (#1645) * Update cookie consent popup * removed auto accept on scroll --------- Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> * Add check to refund stripe donations only (#1648) * Add if check to refund only stripe donations * Use enum for variables * Fix prettier * Adds tests for Wishes and Donors sections on the top of Campaign page (#1646) * feat: adds campaign summary section tests * upgrade_sentry_to_7.80 (#1654) * github actions update (#1655) * added dependabot to update github actions * added run-name for Release github workflow to better distinguish it in the actions list * build(deps): bump actions/setup-node from 3 to 4 (#1656) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump actions/checkout from 3 to 4 (#1657) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump axios from 0.21.4 to 1.6.0 (#1661) Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.6.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v0.21.4...v1.6.0) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump imranismail/setup-kustomize from 1 to 2 (#1660) Bumps [imranismail/setup-kustomize](https://github.com/imranismail/setup-kustomize) from 1 to 2. - [Release notes](https://github.com/imranismail/setup-kustomize/releases) - [Commits](imranismail/setup-kustomize@v1.0.0...v2) --- updated-dependencies: - dependency-name: imranismail/setup-kustomize dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docker/login-action from 2 to 3 (#1659) Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v2...v3) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump docker/build-push-action from 3 to 5 (#1658) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 5. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v3...v5) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * FIX: Added selfReg prop to the ServerUser obj an use it determinate if a user is form keycloak or external auth provider. (#1662) * add PetarDimitrov91 as a contributor for code (#1663) * update README.md [skip ci] * update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * add kzhecheva as a contributor for code, and test (#1664) * update README.md [skip ci] * update .all-contributorsrc [skip ci] --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: igoychev <igoychev@gmail.com> * disabled button for manual import, added guard in rerun button (#1652) * disabled button for manual import,added guardin rerun button * added description comments * [1/2] Affiliate program Integration v1 (#1627) * services/apiEndpoints: Change endpoint for registration Endpoint for registration for individual users is now at /register/individual * campaigns: Include guaranteed donations in reachedAmount * donation.enums.ts: Add guaranteed DonationStatus Match with the values on the backend * donations: Use companyName when donation is made from corporate profile * auth/register: Change register request to match latest changes in backend * [SQUASH]: Donation improvements src/one-step-donation: Allow for corporate donations campaigns/InlineDonation: Limit the amount of donations on mobile to three campaigns/ViewCampaignPage: Push InlineDonation from top, to prevent conflict with the navigation bar on mobile campaigns/DonorsAndDonations: Handle different type of campaign donors * one-time-donation/Steps.tsx Add session to donate's dependency array Donate function needs to be redefined, with person's data in case user logs in on step two of donation flow. Without this change any information coming from acccount/me response is considered undefined, even if user logs in during the second step, as this information was not available during the definition of donate * one-time-donation/Steps.tsx: Add person to donation's dependency array In some cases person remains undefined, even though user is logged in * Allow corporate registrations * i18n: Add translations for new registration flow * Fix horizontal scroll on smaller viewport width * campaigns/DonationWishes.tsx: Show wishes from affiliate donations * pdf/Certificate.tsx: Use companyName if donation is made by corporate profile * pdf/Certificate: Move companyName condition out of the return statement Looks a bit cleaner that way * auth/profile: Changes for corporate profiles - Person's data is now prefetched to prevent any layout shifts and errors until person's data has been loaded. - Added new tab to summarize Affiliate's data which includes, as well as to cancel any guaranteed donations * auth/Register: Fix signin attempt on corporate registration -Sometimes the signin function is called before isSuccess state is switched to true. Use the response statusCode instead to check if the response is successfull -Fixed translations on RegisterSuccess * common/person: Allow for manual profile activation/deactivation - Added a new column profile type, to separate individual from corporate profiles * hooks/person: Fix cache not being invalidat on successfull active status response * pages/admin: Add section to manage Affiliate program * admin/affiliates: Remove unused import * profile/AffiliateProgramTab: Fix crash when donation is undefined In situations where affiliate record doesn't yet exist, donations is undefined, and it causes error * hooks/affiliate: Invalidate affiliate data when requesting to join affiliate program This way there is no need to restart the page * profile/affiliate: Add button to copy affiliate code utils/useCopyToClipbaord.ts: Change hook to copy text passed to copyUrl as parameter * AffiliateProgramTab: Summarize what is affiliate if user has not joined it -Copybutton is now hidden if no affiliateCode is present * CampaignDetails.tsx: Show campaign's summary data on page Includes available amount, guaranteed amount, sent amount, and added expenses * CampaignDetails.tsx: Remove unnnecessary Box component * bg/auth: Change text on successfull corporate registration Co-authored-by: Kalina Zhecheva <kzhecheva@users.noreply.github.com> * eslint: Resolve errors * fix: aligns campaignType translation (#1668) * added campaign donation chart (#1667) * build(deps): bump sharp from 0.30.7 to 0.32.6 (#1669) Bumps [sharp](https://github.com/lovell/sharp) from 0.30.7 to 0.32.6. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md) - [Commits](lovell/sharp@v0.30.7...v0.32.6) --- updated-dependencies: - dependency-name: sharp dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Implement fullscreen image slider when image is clicked (#1676) Currently we don't have a gallery component, and when image is uploaded with role==gallery those images remain unusable on larger screens, due to their small size This commit makes it so a full-screen gallery like is opened whenever an image with role==gallery is clicked. * build(deps): bump next-auth from 4.22.1 to 4.24.5 (#1670) Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 4.22.1 to 4.24.5. - [Release notes](https://github.com/nextauthjs/next-auth/releases) - [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@4.22.1...next-auth@4.24.5) --- updated-dependencies: - dependency-name: next-auth dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove legacy hotjar implementation (#1678) * Remove legacy hotjar implementation Hotjar is now loaded through the GTM * CampaignsPage.tsx: Remove Hotjar implementation * build(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#1679) Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/adobe/css-tools/blob/main/History.md) - [Commits](https://github.com/adobe/css-tools/commits) --- updated-dependencies: - dependency-name: "@adobe/css-tools" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update active team members (#1675) Co-authored-by: Ani Kalpachka <ani.kalpachka@merkle.com> * one-time-donation/LoginForm.tsx: Refetch useCurrentPerson when logged in (#1677) When user logs in trough donation step 2, person's data remains undefined due to data not being updated. Manually refetch the data coming from useCurrentPerson() after login to refresh the user's data * make the robots.txt file dynamic (#1680) * Add new active members (#1681) * lint fix * small fixes * uncommented code in Subscription Section * Unused variables deleted and self-closing tags fix * format changes * e is returned in SubscriptionPage * fix in expenses table and CheckboxField * rearrange in CampaignDetails * SubscribeModal removed from TeamSection * format fix * unused code deleted * removed Grid and SectionGridWrapper in TeamsMemberSection * format change --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Dzhani Ivanov <68897146+dzhaniivanov@users.noreply.github.com> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: igoychev <igoychev@gmail.com> Co-authored-by: Ani <ani_kalpachka888@abv.bg> Co-authored-by: ani-kalpachka <ani.kalpachka888@abv.bg> Co-authored-by: Kalina Zhecheva <60223025+kzhecheva@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: quantum-grit <91589884+quantum-grit@users.noreply.github.com> Co-authored-by: Aleksandar Petkov <sashko506@gmail.com> Co-authored-by: Nikolay Nachev <44066540+Nnachevvv@users.noreply.github.com> Co-authored-by: Petar Dimitrov <79804094+PetarDimitrov91@users.noreply.github.com> Co-authored-by: Anton Angelov <123360440+tongo-angelov@users.noreply.github.com> Co-authored-by: Ani Kalpachka <ani.kalpachka@merkle.com> Co-authored-by: yyosifov <yosifov@officernd.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addition to Closed issue #1426 (tests)
Motivation and context
Adds tests for wishes and donors tabs in the summary of a campaign page.
Campaign page
Testing
test description: e2e/pages/web-pages/campaigns/campaigns.page.ts