diff --git a/src/domains/profile/e2e/create-profile-action.e2e.ts b/src/domains/profile/e2e/create-profile-action.e2e.ts
index 776600249b..e5bcc0ac16 100644
--- a/src/domains/profile/e2e/create-profile-action.e2e.ts
+++ b/src/domains/profile/e2e/create-profile-action.e2e.ts
@@ -12,7 +12,7 @@ const nameInput = Selector("input[name=name]");
test("should return an error when submit without required fields", async (t) => {
await t.click(Selector("button").withExactText(translations.PROFILE.CREATE_PROFILE));
- await t.click(Selector("button").withExactText(translations.COMMON.COMPLETE));
+ await t.click(Selector("button").withExactText(translations.COMMON.CREATE));
await t.click(Selector("fieldset p").withText("'Name' is required"));
await t.click(Selector("fieldset p").withText("'Currency' is required"));
await t.click(Selector("h1").withExactText(translations.PROFILE.PAGE_CREATE_PROFILE.TITLE));
@@ -24,12 +24,10 @@ test("should create a profile and navigate to welcome screen", async (t) => {
await t.expect(getLocation()).contains("/profiles/create");
await t.typeText(nameInput, "Anne Doe");
- await t.click(Selector("button").withText("CryptoCompare"));
- await t.click(Selector("li.select-list-option").withText("CoinGecko"));
await t.click(Selector("button").withText("Select Currency"));
await t.click(Selector("li.select-list-option").withText("ETH"));
await t.click(Selector("input[name=isDarkMode]").parent());
- await t.click(Selector("button").withExactText(translations.COMMON.COMPLETE));
+ await t.click(Selector("button").withExactText(translations.COMMON.CREATE));
await t.wait(1000); // TODO: the profile loading is async so we need to give it a moment
@@ -46,12 +44,10 @@ test("should create a profile with password and navigate to welcome screen", asy
await t.typeText(nameInput, "Joe Bloggs");
await t.typeText(Selector("input[name=password]"), "password");
- await t.click(Selector("button").withText("CryptoCompare"));
- await t.click(Selector("li.select-list-option").withText("CoinGecko"));
await t.click(Selector("button").withText("Select Currency"));
await t.click(Selector("li.select-list-option").withText("ETH"));
await t.click(Selector("input[name=isDarkMode]").parent());
- await t.click(Selector("button").withExactText(translations.COMMON.COMPLETE));
+ await t.click(Selector("button").withExactText(translations.COMMON.CREATE));
await t.wait(1000); // TODO: the profile loading is async so we need to give it a moment
diff --git a/src/domains/profile/i18n.ts b/src/domains/profile/i18n.ts
index b177e84015..57d2f055b7 100644
--- a/src/domains/profile/i18n.ts
+++ b/src/domains/profile/i18n.ts
@@ -45,6 +45,7 @@ export const translations: { [key: string]: any } = {
PAGE_CREATE_PROFILE: {
TITLE: "Create Profile",
DESCRIPTION: "Sign in via MarketSquare or create a new Profile below.",
+ NEW_PROFILE: "New Profile",
VALIDATION: {
MAXLENGTH_ERROR: "The Name should have less than {{maxLength}} characters",
},
diff --git a/src/domains/profile/pages/CreateProfile/CreateProfile.test.tsx b/src/domains/profile/pages/CreateProfile/CreateProfile.test.tsx
old mode 100644
new mode 100755
index 63413b3f33..0b0b5ed9c4
--- a/src/domains/profile/pages/CreateProfile/CreateProfile.test.tsx
+++ b/src/domains/profile/pages/CreateProfile/CreateProfile.test.tsx
@@ -38,7 +38,7 @@ const baseSettings = {
EXCHANGE_CURRENCY: "BTC",
LEDGER_UPDATE_METHOD: false,
LOCALE: "en-US",
- MARKET_PROVIDER: "coincap",
+ MARKET_PROVIDER: "cryptocompare",
NAME: "test profile",
SCREENSHOT_PROTECTION: true,
THEME: "light",
@@ -97,8 +97,6 @@ describe("CreateProfile", () => {
fireEvent.input(getAllByTestId("Input")[0], { target: { value: "test profile" } });
fireEvent.click(getAllByTestId("select-list__toggle-button")[0]);
fireEvent.click(getByTestId("select-list__toggle-option-0"));
- fireEvent.click(getAllByTestId("select-list__toggle-button")[1]);
- fireEvent.click(getByTestId("select-list__toggle-option-0"));
await act(async () => {
fireEvent.click(getByTestId("CreateProfile__submit-button"));
@@ -135,7 +133,7 @@ describe("CreateProfile", () => {
});
it("should store profile with password", async () => {
- const { asFragment, container, getAllByTestId, getByTestId } = renderWithRouter(
+ const { asFragment, getAllByTestId, getByTestId } = renderWithRouter(
,
@@ -149,8 +147,6 @@ describe("CreateProfile", () => {
fireEvent.input(getAllByTestId("Input")[1], { target: { value: "test password" } });
fireEvent.click(getAllByTestId("select-list__toggle-button")[0]);
fireEvent.click(getByTestId("select-list__toggle-option-0"));
- fireEvent.click(getAllByTestId("select-list__toggle-button")[1]);
- fireEvent.click(getByTestId("select-list__toggle-option-0"));
await act(async () => {
fireEvent.click(getByTestId("CreateProfile__submit-button"));
@@ -186,8 +182,6 @@ describe("CreateProfile", () => {
fireEvent.input(getAllByTestId("Input")[0], { target: { value: "test profile" } });
fireEvent.click(getAllByTestId("select-list__toggle-button")[0]);
fireEvent.click(getByTestId("select-list__toggle-option-0"));
- fireEvent.click(getAllByTestId("select-list__toggle-button")[1]);
- fireEvent.click(getByTestId("select-list__toggle-option-0"));
await act(async () => {
fireEvent.click(getByTestId("CreateProfile__submit-button"));
@@ -226,8 +220,6 @@ describe("CreateProfile", () => {
fireEvent.input(getAllByTestId("Input")[0], { target: { value: "test profile" } });
fireEvent.click(getAllByTestId("select-list__toggle-button")[0]);
fireEvent.click(getByTestId("select-list__toggle-option-0"));
- fireEvent.click(getAllByTestId("select-list__toggle-button")[1]);
- fireEvent.click(getByTestId("select-list__toggle-option-0"));
await act(async () => {
fireEvent.click(getByTestId("CreateProfile__submit-button"));
diff --git a/src/domains/profile/pages/CreateProfile/CreateProfile.tsx b/src/domains/profile/pages/CreateProfile/CreateProfile.tsx
index 82fc382069..8d00feb112 100755
--- a/src/domains/profile/pages/CreateProfile/CreateProfile.tsx
+++ b/src/domains/profile/pages/CreateProfile/CreateProfile.tsx
@@ -43,18 +43,18 @@ export const CreateProfile = () => {
{
isFloatingLabel: true,
label: t("SETTINGS.GENERAL.OTHER.DARK_THEME.TITLE"),
- labelClass: "text-lg font-semibold text-theme-neutral-dark",
+ labelClass: "text-xl font-semibold",
labelDescription: t("SETTINGS.GENERAL.OTHER.DARK_THEME.DESCRIPTION"),
labelAddon:
,
},
];
- const handleSubmit = async ({ name, password, currency, isDarkMode, marketProvider }: any) => {
+ const handleSubmit = async ({ name, password, currency, isDarkMode }: any) => {
const formattedName = name.substring(0, nameMaxLength);
const profile = env.profiles().create(formattedName);
- profile.settings().set(ProfileSetting.MarketProvider, marketProvider);
+ profile.settings().set(ProfileSetting.MarketProvider, "cryptocompare");
profile.settings().set(ProfileSetting.ExchangeCurrency, currency);
profile.settings().set(ProfileSetting.Theme, isDarkMode ? "dark" : "light");
@@ -74,11 +74,11 @@ export const CreateProfile = () => {
return (
-
+
{t("PROFILE.PAGE_CREATE_PROFILE.TITLE")}
{t("PROFILE.PAGE_CREATE_PROFILE.DESCRIPTION")}
-
+
-
-
-
@@ -937,7 +770,7 @@ exports[`CreateProfile should store profile 1`] = `
class="container py-16 mx-auto px-14"
>
-
-
-
-
- Other
-
Dark Theme
@@ -1321,7 +1076,7 @@ exports[`CreateProfile should store profile 1`] = `
/>
@@ -1394,7 +1149,7 @@ exports[`CreateProfile should store profile with password 1`] = `
class="container py-16 mx-auto px-14"
>
-
-
-
- Other
-
Dark Theme
@@ -1784,7 +1444,7 @@ exports[`CreateProfile should store profile with password 1`] = `
/>
@@ -1857,7 +1517,7 @@ exports[`CreateProfile should upload and remove avatar image 1`] = `
class="container py-16 mx-auto px-14"
>
-
-
-
- Other
-
Dark Theme
@@ -2247,7 +1812,7 @@ exports[`CreateProfile should upload and remove avatar image 1`] = `
/>
diff --git a/src/domains/setting/i18n.ts b/src/domains/setting/i18n.ts
index 64ae7dde26..7da0e2151a 100644
--- a/src/domains/setting/i18n.ts
+++ b/src/domains/setting/i18n.ts
@@ -6,6 +6,8 @@ export const translations: { [key: string]: any } = {
PERSONAL: {
TITLE: "Personal Details",
PROFILE_IMAGE: "Profile Image",
+ DELETE_AVATAR: "Delete Avatar",
+ UPLOAD_AVATAR: "Upload Avatar",
NAME: "Name",
PASSWORD: "Password",
PASSPHRASE_LANGUAGE: "Passphrase Language",
diff --git a/src/domains/setting/pages/Settings/__snapshots__/Settings.test.tsx.snap b/src/domains/setting/pages/Settings/__snapshots__/Settings.test.tsx.snap
index 8b2c5aec44..ad68ae1858 100644
--- a/src/domains/setting/pages/Settings/__snapshots__/Settings.test.tsx.snap
+++ b/src/domains/setting/pages/Settings/__snapshots__/Settings.test.tsx.snap
@@ -1671,7 +1671,7 @@ exports[`Settings should render 1`] = `
Personal Details
-
-
-
-
-
JO
-
-
+