-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Ensure link colors are appropriate for streamline UI
- Loading branch information
Showing
4 changed files
with
99 additions
and
29 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import {CommitFixture} from 'sentry-fixture/commit'; | ||
import {OrganizationFixture} from 'sentry-fixture/organization'; | ||
import {ProjectFixture} from 'sentry-fixture/project'; | ||
import {UserFixture} from 'sentry-fixture/user'; | ||
|
||
|
@@ -9,13 +10,22 @@ import {GroupActivityType} from 'sentry/types/group'; | |
import ResolutionBox from './resolutionBox'; | ||
|
||
describe('ResolutionBox', function () { | ||
const organization = OrganizationFixture(); | ||
const project = ProjectFixture(); | ||
|
||
it('handles default', function () { | ||
const {container} = render(<ResolutionBox statusDetails={{}} projectId="1" />); | ||
const {container} = render( | ||
<ResolutionBox statusDetails={{}} project={project} organization={organization} /> | ||
); | ||
expect(container).toHaveTextContent('This issue has been marked as resolved.'); | ||
}); | ||
it('handles inNextRelease', function () { | ||
const {container} = render( | ||
<ResolutionBox statusDetails={{inNextRelease: true}} projectId="1" /> | ||
<ResolutionBox | ||
statusDetails={{inNextRelease: true}} | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
'This issue has been marked as resolved in the upcoming release.' | ||
|
@@ -34,7 +44,8 @@ describe('ResolutionBox', function () { | |
email: '[email protected]', | ||
}, | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
|
@@ -48,7 +59,8 @@ describe('ResolutionBox', function () { | |
inNextRelease: true, | ||
actor: UserFixture(), | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
activities={[ | ||
{ | ||
id: '1', | ||
|
@@ -57,7 +69,7 @@ describe('ResolutionBox', function () { | |
current_release_version: '[email protected]', | ||
}, | ||
dateCreated: new Date().toISOString(), | ||
project: ProjectFixture(), | ||
project, | ||
}, | ||
]} | ||
/> | ||
|
@@ -72,7 +84,8 @@ describe('ResolutionBox', function () { | |
statusDetails={{ | ||
inRelease: '1.0', | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
|
@@ -92,7 +105,8 @@ describe('ResolutionBox', function () { | |
email: '[email protected]', | ||
}, | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
|
@@ -105,7 +119,8 @@ describe('ResolutionBox', function () { | |
statusDetails={{ | ||
inCommit: CommitFixture(), | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
|
@@ -126,7 +141,8 @@ describe('ResolutionBox', function () { | |
email: '[email protected]', | ||
}, | ||
}} | ||
projectId="1" | ||
project={project} | ||
organization={organization} | ||
/> | ||
); | ||
expect(container).toHaveTextContent( | ||
|
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
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