cypress: add emacs mode lines
Change-Id: I2cb19d34639ea6af55c693fad7bef8855a0ccba3 Signed-off-by: Henry Castro <hcastro@collabora.com>pull/6868/head
parent
aa6be258fa
commit
3c0731bf2c
|
@ -1,26 +1,27 @@
|
|||
/* -*- typescript-indent-level: 8 -*- */
|
||||
import { defineConfig } from 'cypress';
|
||||
import plugin from './plugins/index.js';
|
||||
import process from 'process';
|
||||
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter';
|
||||
|
||||
export default defineConfig({
|
||||
video: false,
|
||||
defaultCommandTimeout: 10000,
|
||||
modifyObstructiveCode: false,
|
||||
fixturesFolder: 'data',
|
||||
chromeWebSecurity: false,
|
||||
screenshotOnRunFailure: false,
|
||||
env: { USER_INTERFACE: process.env.USER_INTERFACE },
|
||||
retries: {
|
||||
runMode: 1,
|
||||
openMode: 0,
|
||||
},
|
||||
e2e: {
|
||||
baseUrl: 'http://' + process.env.COOLWSD_SERVER + ':' + process.env.FREE_PORT,
|
||||
setupNodeEvents(on, config) {
|
||||
installLogsPrinter(on);
|
||||
plugin(on, config);
|
||||
},
|
||||
specPattern: 'integration_tests/**/*_spec.js',
|
||||
},
|
||||
video: false,
|
||||
defaultCommandTimeout: 10000,
|
||||
modifyObstructiveCode: false,
|
||||
fixturesFolder: 'data',
|
||||
chromeWebSecurity: false,
|
||||
screenshotOnRunFailure: false,
|
||||
env: { USER_INTERFACE: process.env.USER_INTERFACE },
|
||||
retries: {
|
||||
runMode: 1,
|
||||
openMode: 0,
|
||||
},
|
||||
e2e: {
|
||||
baseUrl: 'http://' + process.env.COOLWSD_SERVER + ':' + process.env.FREE_PORT,
|
||||
setupNodeEvents(on, config) {
|
||||
installLogsPrinter(on);
|
||||
plugin(on, config);
|
||||
},
|
||||
specPattern: 'integration_tests/**/*_spec.js',
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
module.exports = {
|
||||
rules: {
|
||||
'no-get-contains-chain': {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global cy Cypress expect */
|
||||
|
||||
var mobileWizardIdleTime = 1250;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global require __dirname */
|
||||
var process = require('process');
|
||||
var tasks = require('./tasks');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
module.exports.list = {
|
||||
fontColor: ['#Home #FontColor .arrowbackground', '#tb_editbar_item_fontcolor'],
|
||||
fontName: ['#fontnamecombobox', '#tb_editbar_item_fonts'],
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global require Promise */
|
||||
|
||||
var fs = require('fs');
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* -*- js-indent-level: 8 -*- */
|
||||
/* global require cy Cypress */
|
||||
|
||||
require('cypress-wait-until');
|
||||
|
@ -19,33 +20,34 @@ var COMMAND_DELAY = 1000;
|
|||
|
||||
// Ignore exceptions coming from nextcloud.
|
||||
if (Cypress.env('INTEGRATION') === 'nextcloud') {
|
||||
Cypress.on('uncaught:exception', function() {
|
||||
return false;
|
||||
});
|
||||
} else {
|
||||
Cypress.on('window:before:load', function(appWindow) {
|
||||
appWindow.addEventListener('error', function(event) {
|
||||
Cypress.log({ name:'uncaught:exception',
|
||||
message: (event.error.message ? event.error.message : 'no message')
|
||||
+ '\n' + (event.error.stack ? event.error.stack : 'no stack') });
|
||||
Cypress.on('uncaught:exception', function() {
|
||||
return false;
|
||||
});
|
||||
} else {
|
||||
Cypress.on('window:before:load', function(appWindow) {
|
||||
appWindow.addEventListener('error', function(event) {
|
||||
Cypress.log({ name:'error:',
|
||||
message: (event.error.message ? event.error.message : 'no message')
|
||||
+ '\n' + (event.error.stack ? event.error.stack : 'no stack') });
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Cypress.on('fail', function(error) {
|
||||
Cypress.log({ name:'fail:',
|
||||
message: error.codeFrame.absoluteFile + ':'
|
||||
+ error.codeFrame.line + ':'
|
||||
+ error.codeFrame.column + '\n'
|
||||
+ error.codeFrame.frame });
|
||||
Cypress.log({ name:'fail:',
|
||||
message: error.codeFrame.absoluteFile + ':'
|
||||
+ error.codeFrame.line + ':'
|
||||
+ error.codeFrame.column + '\n'
|
||||
+ error.codeFrame.frame });
|
||||
|
||||
//https://stackoverflow.com/a/63519375/1592055
|
||||
//returning false here prevents Cypress from failing the test */
|
||||
if (error.message.includes('ResizeObserver loop limit exceeded')) {
|
||||
return false;
|
||||
}
|
||||
//https://stackoverflow.com/a/63519375/1592055
|
||||
//returning false here prevents Cypress from failing the test */
|
||||
if (error.message.includes('ResizeObserver loop limit exceeded')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
throw error;
|
||||
throw error;
|
||||
});
|
||||
|
||||
if (Cypress.browser.isHeaded) {
|
||||
|
|
Loading…
Reference in New Issue