diff --git a/components/faq-updated.test.ts b/components/faq-updated.test.ts new file mode 100644 index 0000000..4c2f846 --- /dev/null +++ b/components/faq-updated.test.ts @@ -0,0 +1,14 @@ +import { updatedFaqItems } from './faq-updated'; + +describe('Gibwork FAQ Content Update', () => { + it('should include email/OAuth sign-in answer', () => { + const noWalletFaq = updatedFaqItems.find(i => i.question.includes('crypto wallet')); + expect(noWalletFaq).toBeDefined(); + expect(noWalletFaq?.answer).toContain('Google, GitHub, X'); + }); + + it('should emphasize on-chain escrow payment', () => { + const payoutFaq = updatedFaqItems.find(i => i.question.includes('get paid')); + expect(payoutFaq?.answer).toContain('on-chain escrow'); + }); +}); diff --git a/components/faq-updated.tsx b/components/faq-updated.tsx new file mode 100644 index 0000000..dab7c04 --- /dev/null +++ b/components/faq-updated.tsx @@ -0,0 +1,14 @@ +export const UPDATED_GIBWORK_FAQ = [ + { + question: "Do I need a crypto wallet to start?", + answer: "No. Sign up in seconds with email, Google, GitHub, X, Discord, Apple or LinkedIn — no wallet required. A wallet is created for you, and you can connect your own later if you prefer." + }, + { + question: "How do I get paid for completed work?", + answer: "Rewards are held in on-chain escrow when work is posted. The moment the creator approves your submission, the funds are released to you and you can claim them from your Gibwork balance." + }, + { + question: "What payment methods does Gibwork support?", + answer: "Work is funded and paid in SPL tokens on Solana — USDC and SOL are the most common. Because payment is escrowed up front, workers can see the money exists before they start." + } +]; diff --git a/components/faq.test.ts b/components/faq.test.ts new file mode 100644 index 0000000..39234eb --- /dev/null +++ b/components/faq.test.ts @@ -0,0 +1,15 @@ +import { UPDATED_GIBWORK_FAQ } from './faq-updated'; + +describe('Gibwork Landing Page FAQ Accuracy', () => { + it('should include email/OAuth sign-up copy without wallet-only restriction', () => { + const walletFaq = UPDATED_GIBWORK_FAQ.find(f => f.question.includes("wallet")); + expect(walletFaq).toBeDefined(); + expect(walletFaq?.answer).toContain("Sign up in seconds with email"); + }); + + it('should accurately explain escrow-before-work payout mechanics', () => { + const payoutFaq = UPDATED_GIBWORK_FAQ.find(f => f.question.includes("get paid")); + expect(payoutFaq).toBeDefined(); + expect(payoutFaq?.answer).toContain("Rewards are held in on-chain escrow"); + }); +});