trim expect and actual values (#773)

This commit is contained in:
Adina Parpalita
2018-11-02 19:01:23 +02:00
committed by Denys Vuika
parent 8eff6ee7c2
commit 68fc762dd2

View File

@@ -99,7 +99,7 @@ describe('Extensions - Info Drawer', () => {
const val = await infoDrawer.getTabTitle(custom_tab.order);
expect(await infoDrawer.isTabPresent(custom_tab.title)).toBe(true, `${custom_tab.title} tab is not present`);
expect(val).toEqual(`${custom_tab.icon}\n${custom_tab.title}`);
expect(val.trim()).toEqual(`${custom_tab.icon}\n${custom_tab.title}`.trim());
});
it('Remove existing tab - [C284647]', async () => {
@@ -125,7 +125,7 @@ describe('Extensions - Info Drawer', () => {
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isTabPresent(no_title_tab.title)).toBe(true, `${no_title_tab.title} tab is not present`);
expect(await infoDrawer.getTabTitle(no_title_tab.order)).toEqual(`${no_title_tab.icon}`);
expect((await infoDrawer.getTabTitle(no_title_tab.order)).trim()).toEqual(`${no_title_tab.icon}`.trim());
});
it('Insert new component in tab - [C284651]', async () => {