feat: improve starter template design (#1320)
This commit is contained in:
+10
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user