Hotfix/fix tests (#4494)

* Comment userv2Banner

* Fixed wipemycal test

* Fixed 'Delete my account' and WipeMyCal tests

* Fixed at least one test, need stripe for others.

* Disable embed tests for now

* Fixed console error due to illegal setState

* Hopefully fixed change-password functionality

* Partially implement new team flow

* Fix Change password test by setting a password with both capital and small letters

* recurring event text fix

* Fixed hash-my-url test

* Fixed event-types tests, done?

* fixing event type edit first event e2e

* Temp disable

Co-authored-by: Alan <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-09-15 16:59:48 +00:00
1 parent 400a80f8e2
commit fc74b686b6
20 files changed
+138 -136

No files matched your search

@@ -91,8 +91,8 @@ const AddNewTeamMembers = (props: { teamId: number }) => {
</ul>
<Button
type="submit"
color="secondary"
data-testid="new-member-button"
StartIcon={Icon.FiPlus}
onClick={() => setMemberInviteModal(true)}
className="mt-6 w-full justify-center">
+8 -5
View File
@@ -1,5 +1,5 @@
import Head from "next/head";
import React, { createContext, useContext, useState } from "react";
import React, { createContext, useContext, useState, useEffect } from "react";
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -42,12 +42,15 @@ export function MetaProvider({ children }: { children: React.ReactNode }) {
* @example <Meta title="Password" description="Manage settings for your account passwords" />
*/
export default function Meta({ title, description, backButton }: MetaType) {
const { t } = useLocale();
const { setMeta, meta } = useMeta();
/* @TODO: maybe find a way to have this data on first render to prevent flicker */
if (meta.title !== title || meta.description !== description) {
setMeta({ title, description, backButton });
}
useEffect(() => {
if (meta.title !== title || meta.description !== description) {
setMeta({ title, description, backButton });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [title, description, backButton]);
return (
<Head>
+3 -2
View File
@@ -695,9 +695,10 @@ function SideBar() {
{/* TODO @Peer_Rich: reintroduce in 2.1
<Tips />
*/}
<div className="mb-4 hidden lg:block">
{/* Save it for next preview version
<div className="mb-4 hidden lg:block">
<UserV2OptInBanner />
</div>
</div> */}
<div data-testid="user-dropdown-trigger">
<span className="hidden lg:inline">
@@ -83,6 +83,7 @@ const VerticalTabItem = function <T extends string>({
!info ? "h-9" : "h-14",
props.className
)}
data-testid={`vertical-tab-${name}`}
aria-current={isCurrent ? "page" : undefined}>
{props.icon && (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment