Skip to content

Commit

Permalink
fix: remove comment from vtex config
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Oct 25, 2024
1 parent d0dcab2 commit 7cc166a
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/tests/components/config/ecommerce/vtex/Config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,31 +134,31 @@ describe('vtex-config Component', () => {
expect(wrapper.vm.disableSave).toBe(false);
});

// it('renders view button when there is a connected catalog', async () => {
// const app = {
// icon: 'icon.png',
// name: 'App Name',
// config: {
// name: 'Test Config',
// api_credentials: { domain: 'test.domain' },
// connected_catalog: false,
// wpp_cloud_uuid: 'uuid-test',
// },
// };
// const wrapper = mount(VtexConfig, {
// props: { app },
// global: {
// plugins: [pinia, i18n, UnnnicSystem],
// },
// mocks: {
// $t: (e) => e,
// },
// });

// const viewButton = wrapper.findComponent({ ref: 'viewButton' });
// const connectButton = wrapper.findComponent({ ref: 'connectButton' });

// expect(viewButton.exists()).toBe(false);
// expect(connectButton.exists()).toBe(true);
// });
it('renders view button when there is a connected catalog', async () => {
const app = {
icon: 'icon.png',
name: 'App Name',
config: {
name: 'Test Config',
api_credentials: { domain: 'test.domain' },
connected_catalog: false,
wpp_cloud_uuid: 'uuid-test',
},
};
const wrapper = mount(VtexConfig, {
props: { app },
global: {
plugins: [pinia, i18n, UnnnicSystem],
},
mocks: {
$t: (e) => e,
},
});

const viewButton = wrapper.findComponent({ ref: 'viewButton' });
const connectButton = wrapper.findComponent({ ref: 'connectButton' });

expect(viewButton.exists()).toBe(false);
expect(connectButton.exists()).toBe(true);
});
});

0 comments on commit 7cc166a

Please sign in to comment.