From aa30dadfd788f78acb1d866030eb3b922ddf59ef Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Tue, 16 Jul 2024 15:20:25 +0200 Subject: [PATCH] Update cypress tests --- .../personalProfile/ProfileEdit.vue | 4 +- .../personalProfile/ProfileView.vue | 23 ++-- client/src/consts.ts | 2 +- client/src/pages/StyleGuidePage.vue | 8 -- .../src/pages/onboarding/AccountProfile.vue | 2 +- .../personalProfile/PersonalProfilePage.vue | 6 +- cypress/e2e/checkout-vv/checkout.cy.js | 121 +++++++++++++----- cypress/e2e/profile/profile.cy.js | 85 ++++++++++++ cypress/support/commands.js | 11 ++ server/vbv_lernwelt/core/serializers.py | 6 + 10 files changed, 212 insertions(+), 56 deletions(-) create mode 100644 cypress/e2e/profile/profile.cy.js diff --git a/client/src/components/personalProfile/ProfileEdit.vue b/client/src/components/personalProfile/ProfileEdit.vue index e668857a..398e363a 100644 --- a/client/src/components/personalProfile/ProfileEdit.vue +++ b/client/src/components/personalProfile/ProfileEdit.vue @@ -301,7 +301,7 @@ async function avatarUpload(e: Event) {
{{ $t("general.cancel") }} -
diff --git a/client/src/components/personalProfile/ProfileView.vue b/client/src/components/personalProfile/ProfileView.vue index b41779c7..ac2e494c 100644 --- a/client/src/components/personalProfile/ProfileView.vue +++ b/client/src/components/personalProfile/ProfileView.vue @@ -71,17 +71,21 @@ const invoiceAddress = computed(() => {

{{ $t("a.Persönliche Informationen") }}

-
{{ user.first_name }}
+
+ {{ user.first_name }} +
-
{{ user.last_name }}
+
+ {{ user.last_name }} +
-
{{ user.email }}
+
{{ user.email }}
-
+
{{ displaySwissPhoneNumber(user.phone_number) }} @@ -90,7 +94,7 @@ const invoiceAddress = computed(() => { -
+
{{ dayjs(user.birth_date).format("DD.MM.YYYY") }} @@ -99,7 +103,7 @@ const invoiceAddress = computed(() => { -
+
{{ line }} @@ -114,13 +118,14 @@ const invoiceAddress = computed(() => {

{{ $t("a.Geschäftsdaten") }}

-
{{ organisationName }}
+
+ {{ organisationName }} +
- -
+
{{ line }}
diff --git a/client/src/consts.ts b/client/src/consts.ts index 25801247..656714c7 100644 --- a/client/src/consts.ts +++ b/client/src/consts.ts @@ -16,4 +16,4 @@ export const COURSE_MOTORFAHRZEUG_PRUEFUNG_ID = -13; export const ORGANISATION_OTHER_BROKER_ID = 1; export const ORGANISATION_OTHER_HEALTH_INSURANCE_ID = 2; export const ORGANISATION_OTHER_PRIVATE_INSURANCE_ID = 3; -export const ORGANISATION_NO_COMPANY_ID = 31; \ No newline at end of file +export const ORGANISATION_NO_COMPANY_ID = 31; diff --git a/client/src/pages/StyleGuidePage.vue b/client/src/pages/StyleGuidePage.vue index 26f791bb..25ff5db5 100644 --- a/client/src/pages/StyleGuidePage.vue +++ b/client/src/pages/StyleGuidePage.vue @@ -13,7 +13,6 @@ import VerticalBarChart from "@/components/ui/VerticalBarChart.vue"; import LearningPathCircle from "@/pages/learningPath/learningPathPage/LearningPathCircle.vue"; import logger from "loglevel"; import { reactive, ref } from "vue"; -import VueDatePicker from "@vuepic/vue-datepicker"; import "@vuepic/vue-datepicker/dist/main.css"; const state = reactive({ @@ -36,8 +35,6 @@ const state = reactive({ }, }); -const birtDate = ref("1982-06-15"); - const dropdownData = [ { title: "Option 1", @@ -415,11 +412,6 @@ function log(data: any) { > {{ state.dropdownSelected }} -

Date Picker

-
- -
-

Checkbox

-