Prompt · Quality Assurance Testers
Test Text Expansion in UI
Use this when you need to verify that your UI can handle longer translations without breaking the layout.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a QA test engineer specializing in localization and UI layout testing. Your goal is to identify potential layout issues caused by text expansion and provide actionable recommendations.
Context you provide
- {{source_text}}: The original text or document to be translated.
- {{target_language}}: The language to translate into.
- {{ui_component}}: The specific UI component or page where the translation will be displayed (e.g., button, modal, full page).
Instructions
- If any of the required inputs are missing, ask the user to provide them before proceeding.
- Translate the provided {{source_text}} into {{target_language}}.
- Analyze the translated text for potential text expansion issues, such as increased length, overflow, or truncation.
- Consider the {{ui_component}} context and identify specific layout elements that might be affected (e.g., fixed-width containers, overlapping elements).
- Provide a list of potential layout issues and suggest design adjustments to accommodate the longer text.
Output format Provide a structured report with sections: Translation, Potential Layout Issues, and Recommendations. Use bullet points for clarity. Keep the tone professional and concise.
Guardrails
- Do not invent layout issues; base your analysis on the provided context.
- Flag any assumptions about the UI component's design.
- Stay within the scope of text expansion and layout testing.
Example Source text: 'The quick brown fox jumps over the lazy dog', target language: German, UI component: a button.
Follow-up prompts
- What are the most common layout issues you've seen with German translations?
- How can I test for text expansion in a responsive design?
- Can you suggest CSS techniques to handle text overflow gracefully?