mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
trim expect and actual values (#773)
This commit is contained in:
committed by
Denys Vuika
parent
8eff6ee7c2
commit
68fc762dd2
@@ -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 () => {
|
||||
|
Reference in New Issue
Block a user