entry.summary e2e buys being listed
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
46b67308fa
commit
f570a07c7c
|
@ -894,6 +894,7 @@ export default {
|
||||||
header: 'vn-entry-summary > vn-card > h5',
|
header: 'vn-entry-summary > vn-card > h5',
|
||||||
reference: 'vn-entry-summary vn-label-value[label="Reference"]',
|
reference: 'vn-entry-summary vn-label-value[label="Reference"]',
|
||||||
confirmed: 'vn-entry-summary vn-check[label="Confirmed"]',
|
confirmed: 'vn-entry-summary vn-check[label="Confirmed"]',
|
||||||
|
anyBuyLine: 'vn-entry-summary tr.dark-row'
|
||||||
},
|
},
|
||||||
entryDescriptor: {
|
entryDescriptor: {
|
||||||
agency: 'vn-entry-descriptor div.body vn-label-value:nth-child(1) span',
|
agency: 'vn-entry-descriptor div.body vn-label-value:nth-child(1) span',
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe('Entry summary path', () => {
|
||||||
browser = await getBrowser();
|
browser = await getBrowser();
|
||||||
page = browser.page;
|
page = browser.page;
|
||||||
await page.loginAndModule('buyer', 'entry');
|
await page.loginAndModule('buyer', 'entry');
|
||||||
await page.waitToClick('vn-entry-index vn-tbody > a:nth-child(2)');
|
await page.accessToSearchResult('4');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async() => {
|
afterAll(async() => {
|
||||||
|
@ -30,7 +30,7 @@ describe('Entry summary path', () => {
|
||||||
it('should display some entry details like the reference', async() => {
|
it('should display some entry details like the reference', async() => {
|
||||||
const result = await page.waitToGetProperty(selectors.entrySummary.reference, 'innerText');
|
const result = await page.waitToGetProperty(selectors.entrySummary.reference, 'innerText');
|
||||||
|
|
||||||
expect(result).toContain('Movement 2');
|
expect(result).toContain('Movement 4');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display other entry details like the confirmed', async() => {
|
it('should display other entry details like the confirmed', async() => {
|
||||||
|
@ -38,4 +38,10 @@ describe('Entry summary path', () => {
|
||||||
|
|
||||||
expect(result).toContain('unchecked');
|
expect(result).toContain('unchecked');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should display all buys for the entry', async() => {
|
||||||
|
const result = await page.countElement(selectors.entrySummary.anyBuyLine);
|
||||||
|
|
||||||
|
expect(result).toEqual(4);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue