mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Added "Add repo" senario testing (#502)
* Adding start of add repository flow * Adding data-cy instead of css selectors * Saving progress * Adding fixture data * Cleaning the test
This commit is contained in:
@@ -13,7 +13,7 @@ const LinkWithSearchParams = ({
|
||||
}) => {
|
||||
const { search } = useLocation();
|
||||
const { context } = useParams();
|
||||
const {clusterMode} = useAppContext();
|
||||
const { clusterMode } = useAppContext();
|
||||
|
||||
const params = new URLSearchParams(search);
|
||||
// For state we don't want to keep while navigating
|
||||
@@ -27,7 +27,13 @@ const LinkWithSearchParams = ({
|
||||
prefixedUrl = `/${context}${to}`;
|
||||
}
|
||||
|
||||
return <NavLink to={`${prefixedUrl}/?${params.toString()}`} {...props} />;
|
||||
return (
|
||||
<NavLink
|
||||
data-cy="navigation-link"
|
||||
to={`${prefixedUrl}/?${params.toString()}`}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default LinkWithSearchParams;
|
||||
|
||||
Reference in New Issue
Block a user