Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions components/faq-updated.test.ts
Original file line number Diff line number Diff line change
@@ -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');
});
});
14 changes: 14 additions & 0 deletions components/faq-updated.tsx
Original file line number Diff line number Diff line change
@@ -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."
}
];
15 changes: 15 additions & 0 deletions components/faq.test.ts
Original file line number Diff line number Diff line change
@@ -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");
});
});