Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
This commit is contained in:
commit
bac033a6b8
|
@ -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 #961 ticket.service fallo en borrado
|
describe('Ticket services path', () => {
|
||||||
xdescribe('Ticket services path', () => {
|
|
||||||
const nightmare = createNightmare();
|
const nightmare = createNightmare();
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
|
@ -57,9 +56,17 @@ xdescribe('Ticket services path', () => {
|
||||||
expect(result).toEqual('Reduced VAT');
|
expect(result).toEqual('Reduced VAT');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should delete the service and check there are none now', async() => {
|
it('should delete the service', async() => {
|
||||||
const result = await nightmare
|
const result = await nightmare
|
||||||
.waitToClick(selectors.ticketService.fistDeleteServiceButton)
|
.waitToClick(selectors.ticketService.fistDeleteServiceButton)
|
||||||
|
.waitToClick(selectors.ticketService.saveServiceButton)
|
||||||
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
|
expect(result).toEqual('Data saved!');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should confirm the service was sucessfully removed', async() => {
|
||||||
|
const result = await nightmare
|
||||||
.waitToClick(selectors.ticketBasicData.basicDataButton)
|
.waitToClick(selectors.ticketBasicData.basicDataButton)
|
||||||
.wait(selectors.ticketBasicData.clientAutocomplete)
|
.wait(selectors.ticketBasicData.clientAutocomplete)
|
||||||
.click(selectors.ticketService.serviceButton)
|
.click(selectors.ticketService.serviceButton)
|
||||||
|
|
Loading…
Reference in New Issue