-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(KFLUXUI-194): update usage of build trigger
Add a tooltip for build trigger details page. Remove two columns from the component activity page.
- Loading branch information
1 parent
850c442
commit e328a06
Showing
5 changed files
with
45 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/components/Components/ComponentDetails/__tests__/ComponentBuildSettings.spec.tsx
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { PACState } from '../../../../hooks/usePACState'; | ||
import { getHelpPopoverText, getBuildTriggerText } from '../tabs/ComponentBuildSettings'; | ||
|
||
describe('getHelpPopoverText', () => { | ||
it('renders the correct help popover text for enabled PACState', () => { | ||
expect(getHelpPopoverText(PACState.ready)).toBe( | ||
'A new build pipeline run is automatically triggered with every commit to the source code.', | ||
); | ||
}); | ||
|
||
it('renders the correct help popover text for disabled PACState', () => { | ||
expect(getHelpPopoverText(PACState.disabled)).toBe( | ||
'Trigger a new build manually from the component’s action menu. To enable an automatic trigger with every commit, upgrade to the Custom build pipeline plan.', | ||
); | ||
}); | ||
}); | ||
|
||
describe('getBuildTriggerText', () => { | ||
it('renders the correct build trigger text based on PACState value', () => { | ||
expect(getBuildTriggerText(PACState.disabled)).toBe('Manual'); | ||
expect(getBuildTriggerText(PACState.ready)).toBe('Automatic'); | ||
}); | ||
}); |
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