Add first part of the k6 test adding a subscriber

[MAILPOET-4956]
This commit is contained in:
Veljko
2023-02-22 09:43:45 +01:00
committed by Veljko V
parent cf2cdde7e5
commit 14e2fcfef3
4 changed files with 99 additions and 0 deletions

View File

@ -18,3 +18,11 @@ export function authenticate(page) {
page.locator('input[name="wp-submit"]').click(),
]);
}
// Select a segment or a list from a select2 search field
export function selectInSelect2(page, listName) {
// Click and write a list name from a dropdown
page.locator('.select2-selection').click();
page.locator('.select2-selection').type(listName);
page.keyboard.press('Enter');
}