fix test ticketservice, update selectors and acl
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
a4e9555dd1
commit
c6203a0654
|
@ -0,0 +1 @@
|
|||
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('160', 'TicketServiceType', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
|
@ -455,7 +455,7 @@ export default {
|
|||
},
|
||||
ticketService: {
|
||||
addServiceButton: 'vn-ticket-service > form > vn-card > div > vn-one:nth-child(3) > vn-icon-button > button > vn-icon',
|
||||
firstDescriptionInput: 'vn-ticket-service vn-autocomplete[label="Documentos"]',
|
||||
firstDescriptionAutocomplete: 'vn-ticket-service vn-autocomplete[field="service.description"]',
|
||||
firstQuantityInput: 'vn-ticket-service vn-input-number[label="Quantity"] input',
|
||||
firstPriceInput: 'vn-ticket-service vn-input-number[label="Price"] input',
|
||||
firstVatTypeAutocomplete: 'vn-ticket-service vn-autocomplete[label="Tax class"]',
|
||||
|
|
|
@ -13,8 +13,7 @@ describe('Ticket services path', () => {
|
|||
|
||||
it('should edit the first service', async() => {
|
||||
const result = await nightmare
|
||||
.clearInput(selectors.ticketService.firstDescriptionInput)
|
||||
.write(selectors.ticketService.firstDescriptionInput, 'my service')
|
||||
.autocompleteSearch(selectors.ticketService.firstDescriptionAutocomplete, 'Documentos')
|
||||
.clearInput(selectors.ticketService.firstQuantityInput)
|
||||
.write(selectors.ticketService.firstQuantityInput, 99)
|
||||
.clearInput(selectors.ticketService.firstPriceInput)
|
||||
|
@ -29,9 +28,9 @@ describe('Ticket services path', () => {
|
|||
it('should confirm the service description was edited correctly', async() => {
|
||||
const result = await nightmare
|
||||
.reloadSection('ticket.card.service')
|
||||
.waitToGetProperty(selectors.ticketService.firstDescriptionInput, 'value');
|
||||
.waitToGetProperty(`${selectors.ticketService.firstDescriptionAutocomplete} input`, 'value');
|
||||
|
||||
expect(result).toEqual('my service');
|
||||
expect(result).toEqual('Documentos');
|
||||
});
|
||||
|
||||
it('should confirm the service quantity was edited correctly', async() => {
|
||||
|
|
Loading…
Reference in New Issue