Nicolas Dabène | Expert Tech & IA, Développeur Full Stack
Back to blog
01 December 2026 Nicolas Dabène, Développeur Full Stack & Orchestrateur IA chez Profileo, 77-24 e-commerce hosting et Zentria 5 min

I asked Mistral to build a PrestaShop carousel. I should have written better acceptance tests.

PrestaShop & e-commerce LLM & modeles Modules PrestaShop Tests
The orange Chonk cat rests a paw on a button beneath the headline “I Put the Chonk to the Test.”
Contents
TL;DR: Key Takeaways

The test that taught me the most in this series boiled down to three actions: creating two banners in the back office, opening the store, and clicking "Next." Yet, I had given Mistral Large 4 a prompt that detailed everything from the maximum file size to behavior without JavaScript. The second banner still displayed in a void. In hindsight, I know what I would change first in my brief. I would give it a proof to deliver before adding more rules to follow.

💡 The playground was deliberately ordinary: a PrestaShop module to manage home banners, with a form, translations, ordering, and separation by store. The code, intermediate versions, and ZIP file are public. You can trace back what the Chonk delivered the first time and compare it with what was corrected. Mistral demo slider repo · First delivery. Ten slides, three stakeholders

The test that taught me the most in this series boiled down to three actions: creating two banners in the back office, opening the store, and clicking "Next." Yet, I had given Mistral Large 4 a prompt that detailed everything from the maximum file size to behavior without JavaScript. The second banner still displayed in a void. In hindsight, I know what I would change first in my brief. I would give it a proof to deliver before adding more rules to follow.

The playground was deliberately ordinary: a PrestaShop module to manage home banners, with a form, translations, ordering, and separation by store. The code, intermediate versions, and ZIP file are public. You can trace back what the Chonk delivered the first time and compare it with what was corrected. Mistral demo slider repo · First delivery.

Ten slides, three stakeholders

"Make a slider" presents a JavaScript problem. "Give a merchant control over their welcome page" also involves the back office and hosting. The developer thinks about the admin panel index. The merchant thinks about the offer that should appear first. The host thinks about file size, cached responses, and what happens to content during an update. The small scope of the module allows us to see where these three expectations meet.

Take an example. The merchant replaces the January banner with the February one. The image upload fails. For them, "Save" failed, and January must remain online with its original text and link. For the code, the database may have already changed, and the disk may still be lagging. I had described the storage constraints. I should have written in black and white the result I wanted after a failed save. This case comes up in the article about the code because the public version is precisely wrong at this boundary.

My other questionable choice was to cap the quota at ten without specifying the page budget. Ten database entries cost little. Ten large images on a mobile connection is another decision. The quota answers an administrative question. The visitor's network demands its own measure. It's the kind of confusion I prefer to clarify in the acceptance test plan before someone starts optimizing what they know how to count.

Expected behavior with zero, one, or multiple active slides

What the brief said and what the store actually executed

The target was PrestaShop 9.1.0, PHP 8.4, and Classic. My working installation was on 9.2, and Mistral took the initiative to set up a 9.1. I would have wanted the agent to ask me to decide when the runtime remained on PHP 8.3.30. The documentation accepts multiple PHP versions depending on the PrestaShop branch. The problem here is simpler: I had requested a specific combination, but the report documents a different one. I would credit the initiative on the environment and leave the line 9.1/PHP 8.4/Classic open until it is retested. Exact prompt · PrestaShop PHP requirements · First delivery report.

Classic was an explicit choice in the brief. Hummingbird became the default theme starting with PrestaShop 9.1, and the latest screenshots are taken on Hummingbird. This is a justifiable evolution of the test, provided it is acknowledged. Next time, I would choose a reference store for the acceptance test plan and a second theme to check portability. A module that uses displayHome depends on where the theme renders the hook and what its grid imposes on the content. Hummingbird status in PrestaShop 9.1.

The evidence I would ask for before the next iteration

I would build the acceptance test plan around Alice, who manages a French store, and Sam, who runs another site in the same group. Alice prepares a "Free Shipping" banner, while Sam keeps a different campaign on his own store. They can work simultaneously in the morning. By the end of the day, Alice deactivates her offer. This scenario forces us to specify who can edit what, what should appear on each welcome page, and when an offer is truly removed. It gives operational meaning to "multistore."

I would also include two decisions in the brief before discussing PHP classes. The first concerns localization. An alternative English text does not translate words already printed in an image. If the same banner must tell two offers or link to two pages, it must be written that the visual and the link can vary by language. The second concerns the state of a campaign. In this module, "active" is a manual status. A promotion that must end exactly at midnight requires a time rule and a withdrawal delay that account for caches. I would leave this feature out of the first scope, explicitly stating the expected withdrawal rule.

Path Proof I would accept
First installation ZIP identified, PrestaShop/PHP/theme combination announced, then creation of two banners from the form.
Publication After inversion in the back office, the two images and their destinations scroll in the correct order. The same scenario works with the keyboard.
Multistore On two stores with different languages and campaigns, saving changes only the selected store. Each welcome page keeps its campaign.
Replacement and update A failed save leaves the old campaign intact. An update of the module preserves the campaigns and activates the fix.

I would also give the agent the definition of a proof. For the update, I want the numbers of the two versions, the command or action that applies the ZIP, and verification of a campaign present before and after. For the display, a screenshot with the indicator "2 of 2" is useful only if the image and the correct link are also verified. For the structure, the Validator analyzes the ZIP the merchant will receive. These checks can fit on one page and prevent the same word, "tested," from alternately designating a syntax check and an end-to-end test. PrestaShop Validator Guide.

I would keep the prompt, with its constraints on formats and data. I would put those four acceptance checks near the top. This changes the conversation with the agent. When they announce the module is complete, I can ask where the result of the update from the first ZIP is. If they show a new installation, acceptance is still pending. On a store already taking orders, the difference is concrete enough to decide to wait. Protocol for reviewing AI-generated modules.

Next article · The raw output

Lire cet épisode en français

Nicolas Dabène

Author

Nicolas Dabène

Développeur Full Stack & Orchestrateur IA chez Profileo, 77-24 e-commerce hosting et Zentria

Senior PHP/Laravel developer with 12+ years of experience in e-commerce. Specialised in PrestaShop architecture, AI agents and automation.

RSS & Veille Tech

Follow this blog without algorithm

Receive every new article in your favorite reader, free of noise, ads, or newsletters.

Not a developer? Click the green "1-Click Subscribe" button above or select Feedly / Inoreader below to read articles directly in your browser without any setup.
I want a simple setup

Choose your web reader below. Clicking a reader opens your personal feed dashboard with this blog pre-added in 1 click.

  1. 1. Click on Feedly or Inoreader below.
  2. 2. Validate the subscription in 1 click.
  3. 3. Read new articles whenever they ship.

LinkedIn

Follow my AI and e-commerce analysis

I share practical notes on AI agents, PrestaShop architecture, MCP and automation for e-commerce teams.

Follow on LinkedIn

Podcast

Contrib

Open the YouTube channel