-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into customization/blaze_slider
- Loading branch information
Showing
46 changed files
with
319 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { PageObject } from "./PageObject"; | ||
|
||
export class CategoryPageObject extends PageObject { | ||
get filterClickShouldReloadCategory() { | ||
get categoryFilter() { | ||
return cy.getByTestId('category-filter-0'); | ||
} | ||
|
||
filterClickShouldReloadCategory = () => { | ||
cy.intercept('/plentysystems/getFacet').as('getFacet'); | ||
cy.getByTestId('category-filter-0').first().click(); | ||
|
||
this.categoryFilter.first().click(); | ||
cy.wait('@getFacet').its('response.statusCode').should('eq', 200) | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
apps/web/__tests__/support/pageObjects/PasswordPageObject.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
apps/web/__tests__/support/pageObjects/SignupPageObject.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<div :class="['w-full', 'space-y-4', textAlignmentClass]"> | ||
<div v-if="text?.pretitle" class="text-xl font-bold mb-2">{{ text.pretitle }}</div> | ||
<h2 v-if="text?.title" class="text-2xl font-semibold mb-4">{{ text.title }}</h2> | ||
<div v-if="text?.subtitle" class="text-lg font-semibold">{{ text.subtitle }}</div> | ||
<div v-if="text?.htmlDescription" class="text-base" v-html="text.htmlDescription" /> | ||
<UiButton | ||
v-if="button?.label && button?.link" | ||
:tag="NuxtLink" | ||
:to="localePath(button?.link ?? '')" | ||
:variant="button?.variant ?? 'primary'" | ||
class="mt-3 px-4 py-2" | ||
> | ||
{{ button?.label }} | ||
</UiButton> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineProps, computed } from 'vue'; | ||
import type { TextContentProps } from '~/components/TextContent/types'; | ||
const props = defineProps<TextContentProps>(); | ||
const localePath = useLocalePath(); | ||
const NuxtLink = resolveComponent('NuxtLink'); | ||
const textAlignmentClass = computed(() => { | ||
switch (props.text?.textAlignment) { | ||
case 'center': | ||
return 'text-center items-center'; | ||
case 'right': | ||
return 'text-right items-end'; | ||
default: | ||
return 'text-left items-start'; | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type TextContentProps = { | ||
text?: { | ||
pretitle?: string; | ||
title?: string; | ||
subtitle?: string; | ||
htmlDescription?: string; | ||
textAlignment?: 'left' | 'center' | 'right'; | ||
}; | ||
button?: { | ||
label?: string; | ||
link?: string; | ||
variant?: 'primary' | 'secondary'; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.