mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
add playwright tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user