P

Midjourney Prompt for Creating E2E Tests

Midjourney, renowned for its power in AI image generation, can play an unexpected but strategic role in the creation of end-to-end (E2E) tests. While Midjourney does not directly generate test code, it excels at 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 the order confirmation — you obtain a visual support that facilitates the writing of 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 are 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.

The prompt

Midjourney

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

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why it works

This prompt works because it structures the E2E journey into distinct and named visual steps, which forces Midjourney to generate a readable and sequential diagram. The use of 'raw' style and white background ensures a professional result suitable for technical documentation. Explicit annotations (status codes, DOM elements) guide the AI towards a result that looks like a real software engineering artifact rather than an artistic illustration.

Expected result

You will obtain 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.

Variants by level

FAQ

Can Midjourney actually help create E2E tests?
Midjourney does not generate test code directly, but it is a powerful tool for the design and documentation phase of E2E tests. By creating visual flow diagrams, user journey mockups, and scenario mappings, it allows your QA team to better understand and plan test coverage. These visuals then serve as references for writing test scripts in tools like Cypress, Playwright, or Selenium.
How can 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 tests: compare screenshots of your application with the Midjourney mockups to detect UI deviations. Finally, present them during sprint planning sessions to align the team on critical scenarios.
Which Midjourney parameters should I prefer for technical test diagrams?
Use the --style raw parameter to avoid artistic embellishments and get 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 textual details and annotations. Reduce stylization with --s 50 or less for a sober and professional result. Finally, always specify 'white background' or 'dark UI theme' to ensure readability in your documentation tools.

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 4800+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

Midjourney Prompt for Creating Flashcards

Flashcards are a remarkably effective learning tool, used by both students and professionals to memorize vocabula

Midjourney Prompt for Creating Infographics

Infographics have become an essential communication tool for synthesizing complex data into impactful visuals. With Midjourney, you can

Midjourney Prompt for Creating Mockups

Mockups have become an essential element of the creative process, whether for presenting a logo on packaging, visualizing a website design on a screen, or staging a product in a realistic context. Midjourney revolutionizes this step by allowing you to generate photorealistic mockups in seconds, without needing complex PSD files or expensive stock images. Thanks to its advanced understanding of materials, lighting, and perspectives, Midjourney produces professional-quality scenarios that rival studio photos. Whether you're a graphic designer presenting a visual identity to a client, an entrepreneur visualizing packaging before production, or a marketer creating visuals for a campaign, mastering mockup prompts will save you considerable time. The main challenge lies in the precision of the instructions: type of support, camera angle, lighting, environment, and level of realism must be carefully described to obtain a usable result. This guide provides optimized and tested prompts to create convincing mockups with Midjourney, from simple product previews to ultra-realistic renders worthy of a professional shoot.

Midjourney Prompt for Creating Personas

Creating visual personas is a fundamental step in any UX design, marketing strategy or product development process. Midjourney revolutionizes this practice by allowing you to generate photorefistic portraits that embody your target user segments. Instead of using generic stock photos with faces lacking authenticity, you can now create custom visual representations that accurately reflect the age, origin, lifestyle and personality of each persona. These visuals enhance empathy within project teams and make persona cards much more impactful during presentations. With Midjourney's advanced parameters, you control lighting, framing, facial expression and environment to create portraits that are consistent with each other while being distinctive. Whether you're working on a mobile app, e-commerce site or advertising campaign, visually credible personas anchor your decisions in a tangible understanding of your users. This guide provides optimized prompts to generate professional, realistic persona portraits that are immediately usable in your deliverables.

Midjourney Prompt for Creating Subtitles

Midjourney is an AI image generation tool that can transform your approach to creating visual subtitles. Whether you produce video content, presentations, or social media posts, subtitles are no longer limited to plain overlaid text. With Midjourney, you can design stylized backgrounds, graphic banners, and visual layouts that enhance your subtitles and capture your audience's attention.

Midjourney Prompt for Creating YouTube Thumbnails

YouTube thumbnails are the first point of contact between your video and potential viewers. A striking thumbnail can multiply your click-through rate by 2 or 3, making it the most strategic visual element of your channel.

Go further

Get new prompts every week

Join our newsletter.