minor refactor plus path fix after merge
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
e6c5ea8cb9
commit
9b4546edad
|
@ -1,7 +1,7 @@
|
||||||
import selectors from '../../helpers/selectors.js';
|
import selectors from '../../helpers/selectors.js';
|
||||||
import getBrowser from '../../helpers/puppeteer';
|
import getBrowser from '../../helpers/puppeteer';
|
||||||
|
|
||||||
xdescribe('Ticket index payout path', () => {
|
describe('Ticket index payout path', () => {
|
||||||
let browser;
|
let browser;
|
||||||
let page;
|
let page;
|
||||||
|
|
||||||
|
@ -47,67 +47,12 @@ xdescribe('Ticket index payout path', () => {
|
||||||
expect(result).toEqual('Data saved!');
|
expect(result).toEqual('Data saved!');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should navigate to the client balance section', async() => {
|
it('should navigate to the client balance section and check a new balance line was entered', async() => {
|
||||||
await page.waitToClick(selectors.globalItems.homeButton);
|
await page.waitToClick(selectors.globalItems.homeButton);
|
||||||
// await page.selectModule('client');
|
|
||||||
// await page.accessToSearchResult('Bruce Wayne');
|
|
||||||
// await page.accessToSection('client.card.balance.index');
|
|
||||||
// await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
// let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
|
|
||||||
// expect(result).toEqual(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should B', async() => {
|
|
||||||
// await page.waitToClick(selectors.globalItems.homeButton);
|
|
||||||
await page.selectModule('client');
|
await page.selectModule('client');
|
||||||
// await page.accessToSearchResult('Bruce Wayne');
|
await page.accessToSearchResult('101');
|
||||||
// await page.accessToSection('client.card.balance.index');
|
|
||||||
// await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
// let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
|
|
||||||
// expect(result).toEqual(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should C', async() => {
|
|
||||||
// await page.waitToClick(selectors.globalItems.homeButton);
|
|
||||||
// await page.selectModule('client');
|
|
||||||
await page.accessToSearchResult('Bruce Wayne');
|
|
||||||
// await page.accessToSection('client.card.balance.index');
|
|
||||||
// await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
// let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
|
|
||||||
// expect(result).toEqual(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should D', async() => {
|
|
||||||
// await page.waitToClick(selectors.globalItems.homeButton);
|
|
||||||
// await page.selectModule('client');
|
|
||||||
// await page.accessToSearchResult('Bruce Wayne');
|
|
||||||
await page.accessToSection('client.card.balance.index');
|
await page.accessToSection('client.card.balance.index');
|
||||||
// await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
// let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
|
|
||||||
// expect(result).toEqual(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should E', async() => {
|
|
||||||
// await page.waitToClick(selectors.globalItems.homeButton);
|
|
||||||
// await page.selectModule('client');
|
|
||||||
// await page.accessToSearchResult('Bruce Wayne');
|
|
||||||
// await page.accessToSection('client.card.balance.index');
|
|
||||||
await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
||||||
// let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
|
|
||||||
// expect(result).toEqual(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should F', async() => {
|
|
||||||
// await page.waitToClick(selectors.globalItems.homeButton);
|
|
||||||
// await page.selectModule('client');
|
|
||||||
// await page.accessToSearchResult('Bruce Wayne');
|
|
||||||
// await page.accessToSection('client.card.balance.index');
|
|
||||||
// await page.waitForSelector('vn-client-balance-index vn-tbody > vn-tr');
|
|
||||||
let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
let result = await page.countElement('vn-client-balance-index vn-tbody > vn-tr');
|
||||||
|
|
||||||
expect(result).toEqual(4);
|
expect(result).toEqual(4);
|
||||||
|
|
|
@ -37,7 +37,7 @@ export default class Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
get checked() {
|
get checked() {
|
||||||
const tickets = this.$.tickets || [];
|
const tickets = this.$.model.data || [];
|
||||||
const checkedLines = [];
|
const checkedLines = [];
|
||||||
for (let ticket of tickets) {
|
for (let ticket of tickets) {
|
||||||
if (ticket.checked)
|
if (ticket.checked)
|
||||||
|
|
Loading…
Reference in New Issue