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

Answer 3 questions and Léa tailors the prompt to your situation.

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.

Related prompts

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 2500+ 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

Mistral Prompt for Writing Subheadings

Subheadings play a crucial role in structuring written content. Whether for a blog post, web page, or professional document, well-written subheadings guide the reader, improve readability, and boost SEO. Mistral, the French language model, excels at understanding French linguistic nuances and offers a remarkable ability to produce impactful, well-structured subheadings tailored to your content's tone. Thanks to its optimized architecture, Mistral can analyze the overall context of your text to generate subheadings that capture attention while staying true to the main message. Whether you are a web writer, content creator, or marketing manager, using Mistral to write your subheadings saves you considerable time while maintaining high editorial quality. This prompt is designed to fully leverage Mistral's capabilities in generating structured, engaging, and web-optimized subheadings.

Claude AI Prompts: Complete Guide to Mastering Claude (Anthropic)

Master Claude (Anthropic) with optimized prompts, advanced techniques and concrete examples. Complete free guide for beginners and experts.

Gemini Prompt for Creating YouTube Thumbnails

YouTube thumbnails are the first visual element that captures viewers' attention in their recommendation feed. A striking thumbnail can mul

Gemini Prompt to Create a Social Media Strategy

Social networks have become an essential lever for any business looking to increase its visibility, engage its community, and generate qualified leads.

Go further

Get new prompts every week

Join our newsletter.