Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj committed Dec 16, 2024
1 parent 2234470 commit dc69c3f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

exports[`email rendering tests rendering bid_accepted 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/contracts/0x557539e7792dc12a0555f5ff02d6ec0f0bc88e09/tokens/21",
"actionButtonText": "CHECK IT OUT",
"bannerLabel": "Bid Accepted",
Expand Down Expand Up @@ -36,6 +37,7 @@ exports[`email rendering tests rendering bid_accepted 1`] = `
exports[`email rendering tests rendering bid_received 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/account?assetType=nft&section=bids",
"actionButtonText": "RESPOND TO BID",
"bannerLabel": "Bid Received",
Expand Down Expand Up @@ -70,6 +72,7 @@ exports[`email rendering tests rendering bid_received 1`] = `
exports[`email rendering tests rendering events_started 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://play.decentraland.org/?position=14%2C100&realm=main",
"actionButtonText": "JUMP IN",
"bannerLabel": "Event Started",
Expand Down Expand Up @@ -111,6 +114,7 @@ exports[`email rendering tests rendering events_started 1`] = `
exports[`email rendering tests rendering events_starts_soon 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://play.decentraland.org/?position=-99%2C35&realm=main",
"actionButtonText": "JUMP IN",
"bannerLabel": "Event Starting Soon",
Expand Down Expand Up @@ -152,10 +156,11 @@ exports[`email rendering tests rendering events_starts_soon 1`] = `
exports[`email rendering tests rendering governance_announcement 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/some-link",
"actionButtonText": "CATCH UP",
"bannerLabel": "Governance Announcement",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/c1df78c1-72e1-4f55-9896-655cb1afc0d3/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/7ea50f0a-6e8f-4f49-8835-e74b13228747/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
DCL DAO have an special announcement for you <span style="color: #FF2D55;">Some content</span>.
</p>
Expand All @@ -171,6 +176,7 @@ exports[`email rendering tests rendering governance_announcement 1`] = `
exports[`email rendering tests rendering governance_authored_proposal_finished 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=c9564934-1f5e-44a3-836e-c0e94c1f593f",
"actionButtonText": "VIEW PROPOSAL",
"bannerLabel": "Governance Your Proposal Ended",
Expand All @@ -189,6 +195,7 @@ exports[`email rendering tests rendering governance_authored_proposal_finished 1
exports[`email rendering tests rendering governance_coauthor_requested 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=cacb1ce3-b5e9-4133-901a-cb787f43871f",
"actionButtonText": "RESPOND TO REQUEST",
"bannerLabel": "Governance Co-Author Request",
Expand All @@ -207,10 +214,11 @@ exports[`email rendering tests rendering governance_coauthor_requested 1`] = `
exports[`email rendering tests rendering governance_new_comment_on_project_update 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/update/?id=a38ec7d7-7eb2-4f9a-b9c8-363785fdcbd6&proposalId=1b8eef75-add3-49d6-9181-3061daaf22ec",
"actionButtonText": "READ THE COMMENT",
"bannerLabel": "Governance New comment on Project",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/486d5137-4b06-425e-b421-42c13cae355e/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/a30f5edc-fdf7-4de6-bdcf-7c0c99b632c4/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
Someone's commented on your project update for <span style="color: #FF2D55;">Duel Arena P2E Continuum, Refinement &amp; Game Expansion [ Resubmission ]</span>.
</p>
Expand All @@ -226,6 +234,7 @@ exports[`email rendering tests rendering governance_new_comment_on_project_updat
exports[`email rendering tests rendering governance_new_comment_on_proposal 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=578d3d3e-9fd2-48cb-bea3-ddc6fb5ab1dd",
"actionButtonText": "VIEW COMMENT",
"bannerLabel": "Governance New comment on Proposal",
Expand All @@ -244,10 +253,11 @@ exports[`email rendering tests rendering governance_new_comment_on_proposal 1`]
exports[`email rendering tests rendering governance_pitch_passed 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=c9564934-1f5e-44a3-836e-c0e94c1f593f",
"actionButtonText": "SEE THE PITCH",
"bannerLabel": "Governance Pitch Passed",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/c1df78c1-72e1-4f55-9896-655cb1afc0d3/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/cfb1e152-199a-4d50-a5f9-56b55337c8a6/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
The pitch <span style="color: #FF2D55;">Limit Grants Re-Submissions</span> has passed and can now receive tenders. Help advance this idea by proposing potential solutions.
</p>
Expand All @@ -263,6 +273,7 @@ exports[`email rendering tests rendering governance_pitch_passed 1`] = `
exports[`email rendering tests rendering governance_proposal_enacted 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=578d3d3e-9fd2-48cb-bea3-ddc6fb5ab1dd",
"actionButtonText": "VIEW CONTRACT",
"bannerLabel": "Governance Project is Funded",
Expand All @@ -281,10 +292,11 @@ exports[`email rendering tests rendering governance_proposal_enacted 1`] = `
exports[`email rendering tests rendering governance_tender_passed 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=c9564934-1f5e-44a3-836e-c0e94c1f593f",
"actionButtonText": "SEE THE TENDER",
"bannerLabel": "Governance Tender Passed",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/c1df78c1-72e1-4f55-9896-655cb1afc0d3/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/41501a13-620a-477e-a8e2-8a3f2a82f3f0/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
The tender you voted on <span style="color: #FF2D55;">Limit Grants Re-Submissions</span> has passed and can now receive bids. If you think you can tackle this solution, make a bid and propose a project!
</p>
Expand All @@ -300,6 +312,7 @@ exports[`email rendering tests rendering governance_tender_passed 1`] = `
exports[`email rendering tests rendering governance_voting_ended_voter 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://governance.decentraland.org/proposal/?id=c9564934-1f5e-44a3-836e-c0e94c1f593f",
"actionButtonText": "DISCOVER THE RESULTS",
"bannerLabel": "Governance Voting Ended",
Expand All @@ -318,6 +331,7 @@ exports[`email rendering tests rendering governance_voting_ended_voter 1`] = `
exports[`email rendering tests rendering item_sold 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/contracts/0xca520eea5aadff51b48d9e9b3038001a751139ca/tokens/180",
"actionButtonText": "PENDING COPY",
"bannerLabel": "Item Sold",
Expand All @@ -336,6 +350,7 @@ exports[`email rendering tests rendering item_sold 1`] = `
exports[`email rendering tests rendering rental_ended 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/contracts/0x959e104e1a4db6317fa58f8295f586e1a978c297/tokens/1249/manage",
"actionButtonText": "VIEW CONTRACT",
"bannerLabel": "Rental Period Ended",
Expand All @@ -362,6 +377,7 @@ exports[`email rendering tests rendering rental_ended 1`] = `
exports[`email rendering tests rendering rental_started 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/contracts/0x959e104e1a4db6317fa58f8295f586e1a978c297/tokens/5051/manage",
"actionButtonText": "VIEW CONTRACT",
"bannerLabel": "Land Rented",
Expand Down Expand Up @@ -391,6 +407,7 @@ exports[`email rendering tests rendering rental_started 1`] = `
exports[`email rendering tests rendering reward_assignment 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "",
"actionButtonText": "VIEW IN YOUR BACKPACK",
"bannerLabel": "Land Rented",
Expand All @@ -415,10 +432,11 @@ exports[`email rendering tests rendering reward_assignment 1`] = `
exports[`email rendering tests rendering reward_campaign_out_of_funds 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/rewards/campaign/aksdjlaskjdakl",
"actionButtonText": "ADD FUNDS",
"bannerLabel": "Campaign out of founds",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/c1df78c1-72e1-4f55-9896-655cb1afc0d3/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/0527f4cd-9c7c-4b88-b166-da4364fed7d2/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
Your campaign "<span style="color: #FF2D55;">Name of the campaign</span>" has run out of funds. Please add more to continue with the minting process.
</p>
Expand All @@ -434,10 +452,11 @@ exports[`email rendering tests rendering reward_campaign_out_of_funds 1`] = `
exports[`email rendering tests rendering reward_campaign_out_of_stock 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/rewards/campaign/aksdjlaskjdakl",
"actionButtonText": "ADD STOCK",
"bannerLabel": "Campaign out of stock",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/c1df78c1-72e1-4f55-9896-655cb1afc0d3/1200x480.png",
"bannerUrl": "http://cdn.mcauto-images-production.sendgrid.net/2322095804444b83/9d02f3fc-f9d8-4349-9922-106a9769d499/600x240.png",
"content": "<p style="font-size: 16px; font-weight: 700; line-height: 24px; text-align: center; color: #43404A;">
Your campaign "<span style="color: #FF2D55;">Name of the campaign</span>" has run out of stock.
</p>
Expand All @@ -453,6 +472,7 @@ exports[`email rendering tests rendering reward_campaign_out_of_stock 1`] = `
exports[`email rendering tests rendering royalties_earned 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/marketplace/contracts/0x08cbc78c1b2e2eea7627c39c8adf660d52e3d82c/tokens/945",
"actionButtonText": "PENDING COPY",
"bannerLabel": "Royalties Earned",
Expand Down Expand Up @@ -483,6 +503,7 @@ exports[`email rendering tests rendering royalties_earned 1`] = `
exports[`email rendering tests rendering worlds_access_restored 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/builder/worlds?tab=dcl",
"actionButtonText": "MANAGE WORLDS",
"bannerLabel": "World access Restored",
Expand All @@ -501,6 +522,7 @@ exports[`email rendering tests rendering worlds_access_restored 1`] = `
exports[`email rendering tests rendering worlds_access_restricted 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/builder/worlds?tab=dcl",
"actionButtonText": "MANAGE WORLDS",
"bannerLabel": "World access Restricted",
Expand All @@ -520,6 +542,7 @@ exports[`email rendering tests rendering worlds_access_restricted 1`] = `
exports[`email rendering tests rendering worlds_missing_resources 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/builder/worlds?tab=dcl",
"actionButtonText": "MANAGE WORLDS",
"bannerLabel": "World at risk",
Expand All @@ -539,6 +562,7 @@ exports[`email rendering tests rendering worlds_missing_resources 1`] = `
exports[`email rendering tests rendering worlds_permission_granted 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/builder/worlds?tab=dcl",
"actionButtonText": "MANAGE WORLDS",
"bannerLabel": "World Permissions Granted",
Expand All @@ -557,6 +581,7 @@ exports[`email rendering tests rendering worlds_permission_granted 1`] = `
exports[`email rendering tests rendering worlds_permission_revoked 1`] = `
{
"accountLink": "https://decentraland.zone/account",
"actionButtonLink": "https://decentraland.org/builder/worlds?tab=dcl",
"actionButtonText": "MANAGE WORLDS",
"bannerLabel": "World permission revoked",
Expand Down
1 change: 1 addition & 0 deletions processor/test/unit/adapters/email-renderer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('email rendering tests', () => {
let config = createConfigComponent({
SIGNING_KEY: 'some-super-secret-key',
SERVICE_BASE_URL: 'https://notifications.decentraland.org',
ACCOUNT_BASE_URL: 'https://decentraland.zone/account',
ENV: 'test'
})
let renderer: IEmailRenderer
Expand Down
2 changes: 1 addition & 1 deletion processor/test/unit/adapters/notifications-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('notifications service tests', () => {
let config = createConfigComponent({
SIGNING_KEY: 'some-super-secret-key',
SERVICE_BASE_URL: 'https://notifications.decentraland.org',
ACCOUNT_BASE_URL: 'https://decentraland.zone/account',
ENV: 'test'
})
let logs: ILoggerComponent
Expand All @@ -30,7 +31,6 @@ describe('notifications service tests', () => {
emailRenderer = await createEmailRenderer({ config })
const subscriptionService = await createSubscriptionsService({ db, logs })


notificationsService = await createNotificationsService({
config,
db,
Expand Down

0 comments on commit dc69c3f

Please sign in to comment.