fixes #5418 Buscador lateral en item/fixed-price #1412

Merged
alexandre merged 14 commits from 5418-buscador-lateral-fixed-price into dev 2023-04-18 08:50:46 +00:00
1 changed files with 9 additions and 2 deletions
Showing only changes of commit 025c158b27 - Show all commits

View File

@ -79,20 +79,27 @@ describe('SmartTable SearchBar integration', () => {
it('should order by first id', async() => {
await page.loginAndModule('developer', 'item');
await page.accessToSection('item.fixedPrice');
await page.doSearch();
const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
expect(result).toEqual('1');
});
it('should order by last id, reload page and have same order', async() => {
it('should order by last id', async() => {
await page.waitToClick(selectors.itemFixedPrice.orderColumnId);
const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
expect(result).toEqual('3');
});
it('should reload page and have same order', async() => {
await page.reload({
waitUntil: 'networkidle2'
});
const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
expect(result).toEqual('13');
expect(result).toEqual('3');
});
});
});