@atomicsmash/init-testing 2.0.0-beta.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -106,7 +106,7 @@ for (const dirent of copyFiles) {
|
|
|
106
106
|
await Promise.all([
|
|
107
107
|
Promise.allSettled([
|
|
108
108
|
packageManager.ensurePackageIsInstalled("@atomicsmash/test-utils", {
|
|
109
|
-
packageConstraint: "^
|
|
109
|
+
packageConstraint: "^5.0.0",
|
|
110
110
|
type: "dev",
|
|
111
111
|
}),
|
|
112
112
|
packageManager.ensurePackageIsInstalled("@atomicsmash/wordpress-tests-helper", { packageConstraint: "^1.0.0", type: "dev" }),
|
package/package.json
CHANGED
|
@@ -6,8 +6,10 @@ setup("Login as admin", async ({ page }) => {
|
|
|
6
6
|
|
|
7
7
|
await page
|
|
8
8
|
.getByLabel("Username or Email Address", { exact: true })
|
|
9
|
-
.fill("Bot");
|
|
10
|
-
await page
|
|
9
|
+
.fill(process.env.WORDPRESS_AUTOMATION_USER ?? "Bot");
|
|
10
|
+
await page
|
|
11
|
+
.getByLabel("Password", { exact: true })
|
|
12
|
+
.fill(process.env.WORDPRESS_AUTOMATION_PASSWORD ?? "password");
|
|
11
13
|
|
|
12
14
|
await page.getByRole("button", { name: "Log In", exact: true }).click();
|
|
13
15
|
|
|
@@ -6,12 +6,12 @@ export const projects = [
|
|
|
6
6
|
...generateProjectsForAllBrowsers({
|
|
7
7
|
name: "universal_tests_unauthenticated",
|
|
8
8
|
testDir: "./tests/e2e/universal",
|
|
9
|
-
testMatch:
|
|
9
|
+
testMatch: /.*\/unauthenticated\.test\.mts/,
|
|
10
10
|
}),
|
|
11
11
|
...generateProjectsForAllBrowsers({
|
|
12
12
|
name: "universal_tests_authenticated",
|
|
13
13
|
testDir: "./tests/e2e/universal",
|
|
14
|
-
testMatch:
|
|
14
|
+
testMatch: /.*\/authenticated\.test\.mts/,
|
|
15
15
|
dependencies: [setupName],
|
|
16
16
|
use: { storageState },
|
|
17
17
|
}),
|
|
@@ -22,7 +22,10 @@ if (pagesRequiringAuthentication.length) {
|
|
|
22
22
|
checkPrivilegedPages(pagesRequiringAuthentication),
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
if (pagesToTest.length) {
|
|
27
|
+
test("No lingering lorem ipsum on the site", checkForLoremIpsum(pagesToTest));
|
|
28
|
+
}
|
|
26
29
|
|
|
27
30
|
lighthouseTest.describe.configure({ mode: "parallel", retries: 3 });
|
|
28
31
|
for (const pageToTest of pagesToTest) {
|