feat: improve starter template design (#1320)

This commit is contained in:
Marvin Hagemeister
2023-06-17 20:31:08 +02:00
committed by GitHub
parent 83925cc1e3
commit ea6a74237d
2 changed files with 186 additions and 28 deletions
+10 -6
View File
@@ -130,11 +130,13 @@ Deno.test({
});
const page = await browser.newPage();
await page.goto(address, { waitUntil: "networkidle2" });
const counter = await page.$("body > div > div > p");
const counter = await page.$("body > div > div > div > p");
let counterValue = await counter?.evaluate((el) => el.textContent);
assert(counterValue === "3");
const buttonPlus = await page.$("body > div > div > button:nth-child(3)");
const buttonPlus = await page.$(
"body > div > div > div > button:nth-child(3)",
);
await buttonPlus?.click();
await delay(100);
@@ -258,16 +260,18 @@ Deno.test({
const page = await browser.newPage();
await page.goto(address, { waitUntil: "networkidle2" });
const counter = await page.$("body > div > div > p");
const counter = await page.$("body > div > div > div > p");
let counterValue = await counter?.evaluate((el) => el.textContent);
assert(counterValue === "3");
assertEquals(counterValue, "3");
const fontWeight = await counter?.evaluate((el) =>
getComputedStyle(el).fontWeight
);
assertEquals(fontWeight, "700");
assertEquals(fontWeight, "400");
const buttonPlus = await page.$("body > div > div > button:nth-child(3)");
const buttonPlus = await page.$(
"body > div > div > div > button:nth-child(3)",
);
await buttonPlus?.click();
await delay(100);