fix up update tests

This commit is contained in:
Abi Raja 2024-05-20 15:51:19 -04:00
parent 5c598daa3c
commit 726ecafd35

View File

@ -82,8 +82,8 @@ describe("e2e tests", () => {
// Update tests - for every model (doesnt need to be repeated for each stack - fix to HTML Tailwind only) // Update tests - for every model (doesnt need to be repeated for each stack - fix to HTML Tailwind only)
models.forEach((model) => { models.forEach((model) => {
["html_tailwind"].forEach((stack) => { ["html_tailwind"].forEach((stack) => {
it.only( it(
`Update for : ${model}`, `update: ${model}`,
async () => { async () => {
const app = new App(page, stack, model, `update_${model}_${stack}`); const app = new App(page, stack, model, `update_${model}_${stack}`);
await app.init(); await app.init();
@ -93,12 +93,12 @@ describe("e2e tests", () => {
// Regenerate works for v1 // Regenerate works for v1
await app.regenerate(); await app.regenerate();
// Make an update // Make an update
await app.edit("make the header blue", "v2"); await app.edit("make the button background blue", "v2");
// Make another update // Make another update
await app.edit("make all text italic", "v3"); await app.edit("make the text italic", "v3");
// Branch off v2 and make an update // Branch off v2 and make an update
await app.clickVersion("v2"); await app.clickVersion("v2");
await app.edit("make all text red", "v4"); await app.edit("make the text white", "v4");
}, },
90 * 1000 90 * 1000
); );