Try to fix filling from address

This commit is contained in:
veljko
2024-02-09 13:49:56 +01:00
committed by Veljko V
parent 6fe3d1cd09
commit 19cf611061

View File

@@ -84,11 +84,9 @@ export async function activateWorkflow(page) {
export async function designEmailInWorkflow(page) {
// Fill the sender email and name
await page.locator('input[type="text"]').waitFor({ state: 'visible' });
await page.locator('input[type="text"]').dblclick();
await page.locator('input[type="text"]').fill(fromName);
await page.locator('input[type="email"]').dblclick();
await page.locator('input[type="text"]').type(' '); // to avoid flakiness
await page.locator('input[type="email"]').fill(adminEmail);
await page.locator('input[type="text"]').click();
await page.screenshot({
path: screenshotPath + `Design_Email_In_Workflow_${Date.now()}`,