Midjourney Prompt for Creating E2E Tests
Midjourney, recognized for its power in AI image generation, can play an unexpected but strategic role in creating end-to-end (E2E) tests. While Midjourney does not directly generate test code, it excels in visualizing user journeys, creating reference mockups for visual tests, and producing flow diagrams illustrating test scenarios. By generating precise visual representations of each step of a user journey — from the homepage to order confirmation — you get visual support that facilitates writing comprehensive E2E tests. These visuals serve as living documentation for your QA team, clarify edge cases, and ensure every critical interaction is covered. Whether you're working on a complex web application or a mobile platform, using Midjourney to visually map your test scenarios transforms an abstract process into a concrete workflow shareable with the entire development team.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Create a detailed technical flowchart illustration showing an end-to-end testing workflow for a web application. Include visual steps: user login screen, product browsing page, shopping cart, checkout form, payment confirmation, and order summary. Each step connected by arrows with annotations showing test assertions (status codes, DOM elements, API responses). Clean UX documentation style, flat design, labeled components, white background, professional software engineering diagram --ar 16:9 --v 6 --style raw --q 2
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Why this prompt works
This prompt works because it structures the E2E journey into distinct, named visual steps, forcing Midjourney to generate a readable, sequential diagram. Using the 'raw' style and white background ensures a professional rendering suitable for technical documentation. Explicit annotations (status codes, DOM elements) guide the AI toward a result that looks like a real software engineering artifact rather than an artistic illustration.
Use Cases
Variants
Expected Output
You will get a professional technical flow diagram illustrating each step of the user journey with clear visual connections between screens. The result will resemble a QA specification document that you can share with your team to validate E2E test coverage and identify missing scenarios.
Frequently Asked Questions
Can Midjourney actually help create E2E tests?
Midjourney doesn't generate test code directly, but it's a powerful tool for the design and documentation phase of E2E tests. By creating visual flow diagrams, user journey mockups, and scenario maps, it allows your QA team to better understand and plan test coverage. These visuals then serve as a reference for writing test scripts in tools like Cypress, Playwright, or Selenium.
How do I use Midjourney images in my E2E test workflow?
Integrate the generated images into your test documentation as visual references. Use them in your Jira tickets or specifications to illustrate the journeys to be tested. They can also serve as a baseline for visual regression testing: compare screenshots of your application with the Midjourney mockups to detect UI discrepancies. Finally, present them during sprint planning sessions to align the team on critical scenarios.
Which Midjourney parameters should I prioritize for technical test diagrams?
Use the --style raw parameter to avoid artistic embellishments and achieve a result close to a technical document. The --ar 16:9 ratio is ideal for horizontal flow diagrams. Add --q 2 to maximize the quality of text details and annotations. Reduce stylization with --s 50 or less for a sober, professional result. Finally, always specify 'white background' or 'dark UI theme' to ensure readability in your documentation tools.
Learn more
Check the full skill on Prompt Guide to master this technique from A to Z.
View on Prompt Guide📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Similar Prompts
Generate Mocks and Fixtures for Your Automated Tests
A prompt to automatically generate realistic mocks, stubs and data fixtures adapted to your test framework and use cases.
Automatically Generate Unit Tests with AI
Automatically generate an exhaustive unit test suite covering nominal cases, edge cases, and error cases for any source code.
Create a Python Automation Script
Create a professional Python automation script with CLI configuration, structured logging, error handling, and tests.
Analyze and Optimize Algorithmic Complexity
Analyze the Big O complexity of your algorithms and optimize them with appropriate data structures and more efficient algorithms.