Sora Prompt for Creating E2E Tests
End-to-end (E2E) tests are essential for ensuring application reliability, but writing them is time-consuming and repetitive. Sora, with its advanced generation capabilities, allows you to automate the creation of complete E2E test scenarios in seconds. By formulating a precise prompt describing user journeys, expected interactions, and validation criteria, you obtain structured test suites covering both nominal and edge cases. The prompt engineering approach applied to Sora transforms how QA and development teams approach test coverage. Instead of starting from a blank page, you describe the expected behavior of your application in natural language, and Sora generates the corresponding test code with appropriate assertions. This method significantly reduces the time needed to set up an E2E suite while maintaining a professional quality level. Whether you use Playwright, Cypress, or Selenium, the prompts presented here adapt to your technical stack and application complexity.
The prompt
Generate a complete end-to-end test suite for a web application. The application is [describe the application and its main features]. Use the [Playwright/Cypress/Selenium] framework with [TypeScript/JavaScript]. For each critical user flow, create a separate test file that includes: 1) Initial setup (fixtures, test data, authentication), 2) Scenario steps with robust selectors (preferably data-testid), 3) Explicit assertions verifying UI state, redirects, and displayed data, 4) Cleanup after each test. Cover the following flows: registration, login, main navigation, [add specific flows]. Also include tests for error cases (invalid forms, network timeouts, insufficient permissions). Each test must be independent, idempotent, and executable in parallel. Add comments explaining the business logic being tested.
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 request around the three pillars of a good E2E test: application context, technical framework, and quality criteria. By explicitly specifying selector patterns, test independence, and error case coverage, it guides Sora toward generation that respects test automation best practices. The request for business-specific comments also forces more thoughtful and documented generation.
Expected result
Variants by level
FAQ
How to adapt E2E tests generated by Sora to my specific application?
Which E2E test framework to choose when using Sora to generate tests?
How to prevent generated E2E tests from being fragile and breaking with every update?
Related prompts
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- 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
Sora Prompt for Creating Illustrations
Sora, the visual generation model developed by OpenAI, opens up fascinating possibilities for creating illustrations. Whether you are a graphic designer, children's book author, art director, or content creator, Sora allows you to produce original illustrations from precise text descriptions. Unlike photorealistic tools, Sora excels at generating stylized visuals thanks to its fine understanding of artistic styles, compositions, and moods. To obtain professional-quality illustrations, mastering the art of the prompt is essential: specify the desired graphic style, describe the composition precisely, define the color palette, and indicate the expected level of detail. A well-constructed prompt transforms a vague idea into a coherent and usable illustration. In this guide, you'll discover optimized prompts for creating various illustrations—from watercolor style to flat design, vector illustration, and comic style. Each variant is designed for a different level of expertise, allowing you to progress in your mastery of Sora as an illustration tool.
Sora Prompt for Creating Infographics
Sora, OpenAI's video generation model, opens up fascinating possibilities for creating visual content, including animated and dynamic infographics.
Sora Prompt for Creating Instagram Stories
Sora, OpenAI's video generation model, opens up unprecedented possibilities for creating impactful Instagram stories. Where creators used to spend hours filming, editing, and retouching their content, Sora makes it possible to produce professional-quality vertical videos from a simple text description. For brands, influencers, and community managers, this is a significant productivity lever: you can generate engaging stories in minutes, test different visual concepts without mobilizing a film crew, and maintain a steady posting cadence. The story format — vertical, short, immersive — is particularly well-suited for AI generation, as production expectations differ from the regular feed. Instagram users consume stories quickly and value authenticity and immediate visual impact over cinematic perfection. By mastering the right Sora prompts, you can create captivating sequences that stop the scroll, tell a story in seconds, and strengthen your brand identity, all without technical video editing skills.
Sora Prompt for Creating Mockups
Sora, OpenAI's video and image generation model, opens up unprecedented possibilities for creating realistic mockups. Whether you are a UI/UX designer, product manager, or entrepreneur, Sora allows you to visualize your interfaces on concrete supports — smartphone screens, laptops, tablets, or even posters in real-world settings — without going through Photoshop or Figma.
Sora Prompt for Creating Personas
Sora, OpenAI's video generation model, opens up fascinating possibilities for creating realistic visual personas. Whether you are a UX designer, marketer, or content creator, the ability to generate videos of fictional yet believable characters radically transforms the user-centered design process.
Sora Prompt for Creating UI Design
Sora, OpenAI's video generation model, opens up fascinating perspectives for user interface designers. By leveraging its ability to produce dynamic and realistic visuals, you can now create animated UI mockups, interactive prototypes, and design concepts in seconds.
Go further
Get new prompts every week
Join our newsletter.