E2Efixes: E2E_DEBUG, client billing data skipped
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-04-03 15:14:53 +02:00
parent a33bbd428f
commit aca687bafc
3 changed files with 11 additions and 6 deletions

View File

@ -351,7 +351,7 @@ let actions = {
hideSnackbar: async function() {
// Holds up for the snackbar to be visible for a small period of time.
if (process.env.DEBUG)
if (process.env.E2E_DEBUG)
await this.waitFor(300);
await this.evaluate(() => {

View File

@ -9,10 +9,14 @@ export async function getBrowser() {
`--window-size=${ 1920 },${ 1080 }`
];
if (process.env.DEBUG)
args.push('--auto-open-devtools-for-tabs');
let env = process.env;
const headless = !(process.env.E2E_SHOW || process.env.DEBUG);
if (env.E2E_DEBUG) {
args.push('--auto-open-devtools-for-tabs');
env.E2E_SHOW = true;
}
const headless = !env.E2E_SHOW;
const browser = await Puppeteer.launch({
args,
defaultViewport: null,

View File

@ -31,7 +31,8 @@ describe('Client Edit billing data path', () => {
expect(snackbarMessage).toEqual('That payment method requires an IBAN');
});
it(`should create a new BIC code`, async() => {
// 2215: Windows (hidden mode): Entity code doesn't get the focus, '9999' is written in entity name.
xit(`should create a new BIC code`, async() => {
await page.waitToClick(selectors.clientBillingData.newBankEntityButton);
await page.write(selectors.clientBillingData.newBankEntityName, 'Gotham City Bank');
await page.write(selectors.clientBillingData.newBankEntityCode, '9999');
@ -43,7 +44,7 @@ describe('Client Edit billing data path', () => {
expect(newcode).toEqual('GTHMCT Gotham City Bank');
});
it(`should confirm the IBAN pay method was sucessfully saved`, async() => {
xit(`should confirm the IBAN pay method was sucessfully saved`, async() => {
let payMethod = await page.waitToGetProperty(selectors.clientBillingData.payMethod, 'value');
expect(payMethod).toEqual('PayMethod with IBAN');