test: Check the recurring event tab and your funtionalities (teste2e-recurring) (#12331)
Co-authored-by: gitstart-calcom <[email protected]> Co-authored-by: GitStart-Cal.com <[email protected]> Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
4 files changed
+62
-3
No files matched your search
@@ -47,7 +47,7 @@ export const EventOccurences = ({ event }: { event: PublicEvent }) => {
|
||||
i18n.language
|
||||
);
|
||||
return (
|
||||
<>
|
||||
<div data-testid="recurring-dates">
|
||||
{recurringStrings.slice(0, 5).map((timeFormatted, key) => (
|
||||
<p key={key}>{timeFormatted}</p>
|
||||
))}
|
||||
@@ -59,7 +59,7 @@ export const EventOccurences = ({ event }: { event: PublicEvent }) => {
|
||||
<p className=" text-sm">+ {t("plus_more", { count: recurringStrings.length - 5 })}</p>
|
||||
</Tooltip>
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -73,6 +73,7 @@ export const EventOccurences = ({ event }: { event: PublicEvent }) => {
|
||||
min="1"
|
||||
max={event.recurringEvent.count}
|
||||
defaultValue={occurenceCount || event.recurringEvent.count}
|
||||
data-testid="occurrence-input"
|
||||
onChange={(event) => {
|
||||
const pattern = /^(?=.*[0-9])\S+$/;
|
||||
const inputValue = parseInt(event.target.value);
|
||||
|
||||
@@ -86,7 +86,7 @@ export const EventTypeDescription = ({
|
||||
</Badge>
|
||||
)}
|
||||
{recurringEvent?.count && recurringEvent.count > 0 && (
|
||||
<li className="hidden xl:block">
|
||||
<li className="hidden xl:block" data-testid="repeat-eventtype">
|
||||
<Badge variant="gray" startIcon={RefreshCw}>
|
||||
{t("repeats_up_to", {
|
||||
count: recurringEvent.count,
|
||||
|
||||
Reference in new issue
Block a user