Playwright: implemented importUser

This commit is contained in:
Jose Olarte III
2024-08-05 19:58:40 +08:00
parent 43965e2ea7
commit 5da836c47c
4 changed files with 32 additions and 31 deletions

View File

@@ -19,16 +19,8 @@ test('Record something given', async ({ page }) => {
// Combine title prefix with the random string
const finalTitle = standardTitle + finalRandomString;
// Create new ID using seed phrase "rigid shrug mobile…"
await page.goto('./start');
await page.getByText('You have a seed').click();
await page.getByPlaceholder('Seed Phrase').fill('rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage');
await page.getByRole('button', { name: 'Import' }).click();
// Set name
await page.getByRole('link', { name: 'Set Your Name' }).click();
await page.getByPlaceholder('Name').fill('User Zero');
await page.getByRole('button', { name: 'Save Changes' }).click();
// Import user 00
await importUser(page, '00');
// Record something given
await page.goto('./');