add playwright tests

This commit is contained in:
Athou
2022-08-13 13:00:23 +02:00
parent 04894f118b
commit ece9b993e0
7 changed files with 314 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
package com.commafeed.e2e;
import com.microsoft.playwright.Page;
import lombok.experimental.UtilityClass;
@UtilityClass
public class PlaywrightTestUtils {
public static void login(Page page) {
page.locator("[placeholder='User Name or E-mail']").fill("admin");
page.locator("[placeholder='Password']").fill("admin");
page.locator("button:has-text('Log in')").click();
}
}