Skip to content

Commit

Permalink
Update Account settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-azvierieva committed Oct 24, 2024
1 parent 012a707 commit e3fcc14
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/tests/ui/e2e/account-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ test('Update Account information', async ({ page, account }) => {
await page.goto('/account/settings');
await page.getByLabel('First NameRequired').fill('Updated');
await page.getByLabel('Last NameRequired').fill('Name');
await page.getByLabel('Phone Number').fill('12345678');
await page.getByLabel('Company').fill('Corporation');
await page.getByLabel('Email Address').fill('updated@email.com');

await page.getByRole('button', { name: 'Update settings' }).click();

await expect(
page.getByText('Dear Updated Name, you successfully updated your account data'),
).toBeVisible();
await expect(page.getByLabel('Company')).toHaveValue('Corporation');
await expect(page.getByLabel('Phone Number')).toHaveValue('12345678');
await expect(page.getByText('Your account settings have been updated')).toBeVisible();
await expect(page.getByLabel('First NameRequired')).toHaveValue('Updated');
await expect(page.getByLabel('Last NameRequired')).toHaveValue('Name');
await expect(page.getByLabel('Email Address')).toHaveValue('updated@email.com');
});

0 comments on commit e3fcc14

Please sign in to comment.