Skip to content

Commit

Permalink
feature/IVYPORTAL-17377-Create-pipeline-to-run-Lighthouse-report
Browse files Browse the repository at this point in the history
  • Loading branch information
nhthinh-axonivy committed Dec 27, 2024
1 parent 44221f2 commit 7af1085
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions AxonIvyPortal/portal-selenium-test/lighthouse/puppeteer-script.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ const __dirname = dirname(__filename);

(async () => {
try {
// Read user credentials
const csvFilePath = path.join(__dirname, "../jmeter/data/users_local.csv");
const users = fs
.readFileSync(csvFilePath, "utf-8")
.split("\n")
.filter(Boolean)
.map((line) => {
const [username, password] = line.trim().split(",");
return { username, password };
});

const formData = {
"javax.faces.partial.ajax": "true",
"javax.faces.source": "login-form:login-command",
"javax.faces.partial.execute": "@all",
"javax.faces.partial.render": "login:login-form",
"login:login-form:username": username, // Replace with actual username
"login:login-form:password": password, // Replace with actual password
"login:login-form:username": "admin", // Replace with actual username
"login:login-form:password": "admin", // Replace with actual password
"javax.faces.ViewState": "dynamic-view-state", // Fetch dynamically if required
"login:login-form_SUBMIT": "1",
};
Expand Down

0 comments on commit 7af1085

Please sign in to comment.