e2e fixed
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
927957aed8
commit
de5a15778e
|
@ -262,7 +262,7 @@ export default {
|
||||||
itemDiary: {
|
itemDiary: {
|
||||||
thirdTicketId: 'vn-item-diary vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(2) > span',
|
thirdTicketId: 'vn-item-diary vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(2) > span',
|
||||||
firstBalance: 'vn-item-diary vn-tbody > vn-tr:nth-child(1) > vn-td.balance',
|
firstBalance: 'vn-item-diary vn-tbody > vn-tr:nth-child(1) > vn-td.balance',
|
||||||
fifthBalance: 'vn-item-diary vn-tbody > vn-tr.ng-scope.isToday.isIn > vn-td.balance > span',
|
fifthBalance: 'vn-item-diary vn-tbody > vn-tr:nth-child(5) > vn-td.balance',
|
||||||
warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]',
|
warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]',
|
||||||
},
|
},
|
||||||
ticketSummary: {
|
ticketSummary: {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import selectors from '../../helpers/selectors.js';
|
import selectors from '../../helpers/selectors.js';
|
||||||
import createNightmare from '../../helpers/nightmare';
|
import createNightmare from '../../helpers/nightmare';
|
||||||
|
|
||||||
// Bug #808 order.basic-data
|
describe('Order edit basic data path', () => {
|
||||||
fdescribe('Order edit basic data path', () => {
|
|
||||||
const nightmare = createNightmare();
|
const nightmare = createNightmare();
|
||||||
describe('when confirmed order', () => {
|
describe('when confirmed order', () => {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
|
@ -16,7 +15,6 @@ fdescribe('Order edit basic data path', () => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.autocompleteSearch(selectors.orderBasicData.clientAutocomplete, 'Tony Stark')
|
.autocompleteSearch(selectors.orderBasicData.clientAutocomplete, 'Tony Stark')
|
||||||
.autocompleteSearch(selectors.orderBasicData.addressAutocomplete, 'Tony Stark')
|
.autocompleteSearch(selectors.orderBasicData.addressAutocomplete, 'Tony Stark')
|
||||||
.wait(1999)
|
|
||||||
.waitToClick(selectors.orderBasicData.saveButton)
|
.waitToClick(selectors.orderBasicData.saveButton)
|
||||||
.waitForLastSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
|
@ -65,6 +63,7 @@ fdescribe('Order edit basic data path', () => {
|
||||||
it('should be able to modify all the properties', async() => {
|
it('should be able to modify all the properties', async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.autocompleteSearch(selectors.orderBasicData.clientAutocomplete, 'Tony Stark')
|
.autocompleteSearch(selectors.orderBasicData.clientAutocomplete, 'Tony Stark')
|
||||||
|
.autocompleteSearch(selectors.orderBasicData.addressAutocomplete, 'Tony Stark')
|
||||||
.clearInput(selectors.orderBasicData.observationInput)
|
.clearInput(selectors.orderBasicData.observationInput)
|
||||||
.write(selectors.orderBasicData.observationInput, 'Observation modified')
|
.write(selectors.orderBasicData.observationInput, 'Observation modified')
|
||||||
.waitToClick(selectors.orderBasicData.saveButton)
|
.waitToClick(selectors.orderBasicData.saveButton)
|
||||||
|
|
|
@ -50,7 +50,7 @@ describe('Ticket diary path', () => {
|
||||||
|
|
||||||
it(`should check the fifth line balance is marked as counter`, async() => {
|
it(`should check the fifth line balance is marked as counter`, async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.waitToGetProperty(selectors.itemDiary.fifthBalance, 'className');
|
.waitToGetProperty(`${selectors.itemDiary.fifthBalance} > span`, 'className');
|
||||||
|
|
||||||
expect(result).toContain('counter');
|
expect(result).toContain('counter');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue