-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASAP-293 Hide CTA footer for inactive interest groups (#4197)
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,29 @@ it('does not render a call to action button, when a PM is NOT defined on the gro | |
expect(queryByText(/contact pm/i)).not.toBeInTheDocument(); | ||
}); | ||
|
||
it('does not render a call to action button, when a PM is defined but group is inactive', () => { | ||
const { queryByText } = render( | ||
<InterestGroupProfileAbout | ||
{...props} | ||
active={false} | ||
contactEmails={[]} | ||
leaders={[ | ||
{ | ||
user: { | ||
...createUserResponse(), | ||
displayName: 'John', | ||
teams: [], | ||
email: '[email protected]', | ||
}, | ||
role: 'Project Manager', | ||
}, | ||
]} | ||
/>, | ||
); | ||
|
||
expect(queryByText(/contact pm/i)).not.toBeInTheDocument(); | ||
}); | ||
|
||
it('renders the Teams Tabbed card', () => { | ||
render(<InterestGroupProfileAbout {...props} active={true} />); | ||
expect( | ||
|