-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport harvester cloud creds warning
- Loading branch information
Mo Mesgin
authored and
Mo Mesgin
committed
Aug 1, 2024
1 parent
bc56037
commit 468400e
Showing
3 changed files
with
28 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import HarvesterCloudCreds from '@shell/cloud-credential/harvester.vue'; | ||
|
||
const mockStore = { getters: { 'i18n/t': jest.fn() } }; | ||
|
||
describe('cloud credentials: Harvester', () => { | ||
const wrapper = mount(HarvesterCloudCreds, { | ||
propsData: { value: {} }, | ||
mocks: { $store: mockStore } | ||
}); | ||
|
||
it('should display the warning banner for token expiration', async() => { | ||
const warningBanner = wrapper.find('[data-testid="harvester-token-expiration-warning-banner"]'); | ||
|
||
expect(warningBanner.exists()).toBe(true); | ||
expect(warningBanner.isVisible()).toBe(true); | ||
}); | ||
}); |
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