8032-devToTest_2440 #3009
|
@ -21,6 +21,7 @@ BEGIN
|
|||
t.clientFk,
|
||||
t.warehouseFk,
|
||||
ts.alertLevel,
|
||||
sub2.alertLevel futureAlertLevel,
|
||||
t.shipped,
|
||||
t.totalWithVat,
|
||||
sub2.shipped futureShipped,
|
||||
|
@ -47,6 +48,7 @@ BEGIN
|
|||
t.addressFk,
|
||||
t.id,
|
||||
t.shipped,
|
||||
ts.alertLevel,
|
||||
st.name state,
|
||||
st.code,
|
||||
st.classColor,
|
||||
|
|
|
@ -687,7 +687,7 @@ export default {
|
|||
ticketFuture: {
|
||||
searchResult: 'vn-ticket-future tbody tr',
|
||||
openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
|
||||
originDated: 'vn-date-picker[label="Origin date"]',
|
||||
originScopeDays: 'vn-date-picker[label="Origin date"]',
|
||||
futureScopeDays: 'vn-date-picker[label="Destination date"]',
|
||||
linesMax: 'vn-textfield[label="Max Lines"]',
|
||||
litersMax: 'vn-textfield[label="Max Liters"]',
|
||||
|
|
|
@ -37,11 +37,11 @@ describe('Ticket Future path', () => {
|
|||
expect(message.text).toContain('futureScopeDays is a required argument');
|
||||
|
||||
await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
|
||||
await page.clearInput(selectors.ticketFuture.originDated);
|
||||
await page.clearInput(selectors.ticketFuture.originScopeDays);
|
||||
await page.waitToClick(selectors.ticketFuture.submit);
|
||||
message = await page.waitForSnackbar();
|
||||
|
||||
expect(message.text).toContain('originDated is a required argument');
|
||||
expect(message.text).toContain('originScopeDays is a required argument');
|
||||
|
||||
await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
|
||||
await page.waitToClick(selectors.ticketFuture.submit);
|
||||
|
@ -71,7 +71,7 @@ describe('Ticket Future path', () => {
|
|||
await page.autocompleteSearch(selectors.ticketFuture.state, 'Free');
|
||||
await page.waitToClick(selectors.ticketFuture.submit);
|
||||
|
||||
expect(httpRequest).toContain('state=FREE');
|
||||
expect(httpRequest).toContain('state=0');
|
||||
|
||||
await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
|
||||
|
||||
|
@ -80,7 +80,7 @@ describe('Ticket Future path', () => {
|
|||
await page.autocompleteSearch(selectors.ticketFuture.futureState, 'Free');
|
||||
await page.waitToClick(selectors.ticketFuture.submit);
|
||||
|
||||
expect(httpRequest).toContain('futureState=FREE');
|
||||
expect(httpRequest).toContain('futureState=0');
|
||||
|
||||
await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
|
||||
await page.clearInput(selectors.ticketFuture.state);
|
||||
|
|
Loading…
Reference in New Issue