SSR-1924 Fix unit tests for changes

This commit is contained in:
Josh Dassinger 2024-11-27 11:15:39 -06:00
parent 0d6e8f2cd9
commit 96c29f38cc
2 changed files with 0 additions and 24 deletions

View file

@ -184,7 +184,6 @@ describe('tpa-submit', () => {
// Assert
expect(mainButton.exists()).toBeTruthy();
expect(mainButton.props().isPrimary).toBe(true);
expect(mainButton.props().loaderColor).toBe('white');
expect(mainButton.classes()).toContain('w-100');
expect(mainButton.classes()).toContain('mb-5');
});

View file

@ -49,29 +49,6 @@ describe('buttonMain.vue', () => {
expect(button.attributes()['aria-disabled']).toEqual('true');
});
it('Should return loader color', async () => {
// Act
const wrapper = shallowMount(
buttonMain,
setupMocks({
propsData: {
loaderColor: 'blue',
loaderEnabled: true
}
})
);
// Assert
wrapper.vm.clicked();
await nextTick();
const loader = wrapper.find('loader-stub');
expect(loader.attributes('class')).toContain('blue');
});
it('Should return loader position', async () => {
// Act
const wrapper = shallowMount(