Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions web/libs/core/src/lib/Tour/Tour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,15 @@ export const Tour: React.FC<TourProps> = ({ name, autoStart = false, delay = 0,

const { key, ...joyrideState } = state;

// Disable tours when running in Cypress tests
const isCypressTest = typeof window !== "undefined" && !!(window as any).Cypress;
const shouldRunTour = !isCypressTest && joyrideState.run;

return state.steps.length > 0 ? (
<JoyRide
key={key}
{...joyrideState}
run={shouldRunTour}
{...props}
callback={handleTourCallback}
styles={{
Expand Down
2 changes: 1 addition & 1 deletion web/libs/datamanager/src/components/App/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
content: "";
position: absolute;
height: 4px;
background: linear-gradient(to bottom, var(--black_15), transparent);
background: linear-gradient(to bottom, rgba(var(--color-neutral-shadow-raw) / 20%) 0%, transparent 100%);
}
}

Expand Down
11 changes: 10 additions & 1 deletion web/libs/datamanager/src/components/Common/FieldsButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,22 @@ export const FieldsButton = injector(
tooltip,
tooltipTheme = "dark",
openUpwardForShortViewport = true,
"data-testid": dataTestId,
}) => {
const content = [];

if (title) content.push(<React.Fragment key="f-button-title">{title}</React.Fragment>);

const renderButton = () => {
return (
<Button variant="neutral" size="small" look="outlined" leading={icon} trailing={trailingIcon}>
<Button
variant="neutral"
size="small"
look="outlined"
leading={icon}
trailing={trailingIcon}
data-testid={dataTestId}
>
{content.length ? content : null}
</Button>
);
Expand Down Expand Up @@ -112,6 +120,7 @@ export const FieldsButton = injector(
look="outlined"
leading={icon}
trailing={trailingIcon}
data-testid={dataTestId}
>
{content.length ? content : null}
</Button>
Expand Down
Loading
Loading