const { currentUser, location } = this.props;
if (
currentUser.showOnboardingTutorial &&
- !['about', 'documentation', 'onboarding', 'projects/create', 'create-organization'].some(
+ !['/about', '/documentation', '/onboarding', '/projects/create', '/create-organization'].some(
path => location.pathname.startsWith(path)
)
) {
getWrapper({
canAdmin: false,
currentUser: { ...LOGGED_IN_USER, showOnboardingTutorial: true },
- location: { pathname: 'documentation/' }
+ location: { pathname: '/documentation/' }
+ })
+ );
+
+ await shouldNotHaveModals(
+ getWrapper({
+ canAdmin: false,
+ currentUser: { ...LOGGED_IN_USER, showOnboardingTutorial: true },
+ location: { pathname: '/create-organization' }
})
);
});
renderIssuesLink() {
const { location = { pathname: '' } } = this.props;
- const isIssuesActive = location.pathname.startsWith('project/issues');
+ const isIssuesActive = location.pathname.startsWith('/project/issues');
return (
<li>
<Link
return null;
}
+ const { location = { pathname: '' } } = this.props;
const isActive = location.pathname.startsWith('/project/security_reports');
return (
<Dropdown overlay={this.renderSecurityReportsLink()} tagName="li">
}
export default function GlobalNavExplore({ location }: Props) {
- const active = location.pathname.startsWith('explore');
-
+ const active = location.pathname.startsWith('/explore');
return (
<li>
<Link
}
const active =
- this.props.location.pathname.startsWith('projects') &&
- this.props.location.pathname !== 'projects/create';
+ this.props.location.pathname.startsWith('/projects') &&
+ this.props.location.pathname !== '/projects/create';
return (
<li>