SSR-1924 Fix unit tests for changes
This commit is contained in:
parent
0d6e8f2cd9
commit
96c29f38cc
2 changed files with 0 additions and 24 deletions
|
|
@ -184,7 +184,6 @@ describe('tpa-submit', () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(mainButton.exists()).toBeTruthy();
|
expect(mainButton.exists()).toBeTruthy();
|
||||||
expect(mainButton.props().isPrimary).toBe(true);
|
expect(mainButton.props().isPrimary).toBe(true);
|
||||||
expect(mainButton.props().loaderColor).toBe('white');
|
|
||||||
expect(mainButton.classes()).toContain('w-100');
|
expect(mainButton.classes()).toContain('w-100');
|
||||||
expect(mainButton.classes()).toContain('mb-5');
|
expect(mainButton.classes()).toContain('mb-5');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -49,29 +49,6 @@ describe('buttonMain.vue', () => {
|
||||||
expect(button.attributes()['aria-disabled']).toEqual('true');
|
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 () => {
|
it('Should return loader position', async () => {
|
||||||
// Act
|
// Act
|
||||||
const wrapper = shallowMount(
|
const wrapper = shallowMount(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue