diff --git a/cypress/e2e/onboarding.cy.ts b/cypress/e2e/onboarding.cy.ts index 368ccf9..e1fbd77 100644 --- a/cypress/e2e/onboarding.cy.ts +++ b/cypress/e2e/onboarding.cy.ts @@ -63,8 +63,8 @@ describe('Supplier Portal Onboarding & Feature E2E Flow', () => { cy.contains('Submit Supplier Profile').click(); // 6. Setup Welcome Tour Stepper - cy.contains('Welcome to Global Artisans Hub! 🎉').should('be.visible'); - cy.contains('Start Tour').click(); + cy.contains('Supplier Account Under Review ⏳').should('be.visible'); + cy.contains('Start Guided Tour 🎬').click(); cy.contains('📦 Products & Inventory Management').should('be.visible'); cy.contains('Next: Order Management').click(); cy.contains('🚚 Order Acceptance Control').should('be.visible'); @@ -72,7 +72,7 @@ describe('Supplier Portal Onboarding & Feature E2E Flow', () => { cy.contains('🏷️ Barcode Identification & Tracking').should('be.visible'); cy.contains('Next: Earnings & Wallet').click(); cy.contains('💼 Wallet & Payout Withdrawals').should('be.visible'); - cy.contains('Launch Dashboard 🚀').click(); + cy.contains('Explore Dashboard 🚀').click(); // 7. Check Active Dashboard Tab cy.contains('Performance Analytics').should('be.visible'); diff --git a/src/App.test.tsx b/src/App.test.tsx index b997f5f..9edfc8e 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -121,11 +121,11 @@ describe('Supplier Portal Onboarding & Active Dashboard Tests', () => { const submitBtn = screen.getByRole('button', { name: /Submit Supplier Profile/i }) fireEvent.click(submitBtn) - // Welcome Page & Setup Tour - expect(screen.getByText(/Welcome to Global Artisans Hub!/i)).toBeInTheDocument() + // Welcome Page & Setup Tour (Account Under Review) + expect(screen.getByText(/Supplier Account Under Review/i)).toBeInTheDocument() // Complete tour steps - const startTourBtn = screen.getByRole('button', { name: /Start Tour/i }) + const startTourBtn = screen.getByRole('button', { name: /Start Guided Tour/i }) fireEvent.click(startTourBtn) const next1 = screen.getByRole('button', { name: /Next: Order Management/i }) @@ -137,7 +137,7 @@ describe('Supplier Portal Onboarding & Active Dashboard Tests', () => { const next3 = screen.getByRole('button', { name: /Next: Earnings & Wallet/i }) fireEvent.click(next3) - const finishBtn = screen.getByRole('button', { name: /Launch Dashboard 🚀/i }) + const finishBtn = screen.getByRole('button', { name: /Explore Dashboard 🚀/i }) fireEvent.click(finishBtn) // Redirects to Dashboard Page diff --git a/src/App.tsx b/src/App.tsx index 181dbc9..eb4dc72 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2029,10 +2029,10 @@ function WelcomeTourWizard({ onComplete, storeName }: { onComplete: () => void; const [tourStep, setTourStep] = useState(1) const steps = [ { - title: "Welcome to Global Artisans Hub! 🎉", - description: `Congratulations ${storeName}! Your supplier profile is verified and complete. Let's take a 1-minute tour to get you familiar with your active workspace so you can begin selling immediately.`, - icon: "🎉", - action: "Start Tour" + title: "Supplier Account Under Review ⏳", + description: `Thank you for completing your profile! Your GSTIN, PAN, and Aadhaar card details have been submitted. Our compliance team is verifying your documents. This review is typically completed within the next 24 hours. While we verify your credentials, let's take a quick animated tour to get you familiar with your dashboard!`, + icon: "⏳", + action: "Start Guided Tour 🎬" }, { title: "📦 Products & Inventory Management", @@ -2056,17 +2056,17 @@ function WelcomeTourWizard({ onComplete, storeName }: { onComplete: () => void; title: "💼 Wallet & Payout Withdrawals", description: "Monitor outstanding payouts and withdraw your earnings directly to your bank account anytime. Keep track of transaction receipts directly inside the Wallet tab.", icon: "💼", - action: "Launch Dashboard 🚀" + action: "Explore Dashboard 🚀" } ] const current = steps[tourStep - 1] return ( -
+
{current.description}
@@ -2074,6 +2074,7 @@ function WelcomeTourWizard({ onComplete, storeName }: { onComplete: () => void; {steps.map((_, idx) => (