Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-web-pages
Commits
fe3b37b8
Commit
fe3b37b8
authored
Apr 06, 2021
by
Dumitru Corini
Committed by
abirembaut
Sep 27, 2021
Browse files
chore(all tests): Run tests in chrome (#38)
* chore(all tests): Run tests in chrome instead of electron
parent
60ecf56f
Changes
34
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
fe3b37b8
...
...
@@ -24,7 +24,7 @@ ansiColor('xterm') {
try
{
gradle
'buildUIDPage --parallel --max-workers 2'
gradle
'build'
gradle
'runTest --parallel --max-workers 2'
gradle
'runTest
Chrome
--parallel --max-workers 2'
}
finally
{
junit
testResults:
'**/build*/tests/results/*.xml'
,
allowEmptyResults:
true
archiveArtifacts
'**/build*/distributions/*.zip, **/build*/*.zip, uid-pages/**/videos/*'
...
...
templates/templatePage/%template-page-name%/cypress.json
View file @
fe3b37b8
...
...
@@ -7,5 +7,10 @@
"reporterOptions"
:
{
"mochaFile"
:
"build/tests/results/test-results-output.xml"
,
"toConsole"
:
true
}
},
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
\ No newline at end of file
templates/templatePage/%template-page-name%/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/build.gradle
View file @
fe3b37b8
...
...
@@ -24,10 +24,9 @@ subprojects { subProject ->
group
'ui designer'
}
subProject
.
task
([
dependsOn:
[
unzip
,
subProject
.
tasks
.
npm_install
],
type:
NpmTask
],
"runTest"
)
{
subProject
.
task
([
dependsOn:
[
unzip
,
subProject
.
tasks
.
npm_install
],
type:
NpmTask
],
"runTest
Chrome
"
)
{
workingDir
=
parentProject
.
projectDir
args
=
[
'test'
,
'--'
,
'--project'
,
subProject
.
name
]
environment
=
[
LANG:
'en_EN.UTF-8'
]
args
=
[
'test'
,
'--'
,
'--project'
,
subProject
.
name
,
'--browser'
,
'chrome'
,
'--headless'
]
group
'Bonita'
}
}
...
...
uid-pages/form-case-overview/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/form-case-overview/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/layout-bonita/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/layout-living-application/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/layout-living-application/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-case-details/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/page-admin-case-details/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-group-list/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/page-admin-group-list/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-install-export-organization/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/page-admin-install-export-organization/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-process-list/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
uid-pages/page-admin-process-list/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-profile-list/cypress.json
View file @
fe3b37b8
...
...
@@ -8,8 +8,9 @@
"mochaFile"
:
"build/tests/results/test-results-output.xml"
,
"toConsole"
:
true
},
"testFiles"
:
"**/*.feature"
,
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
\ No newline at end of file
uid-pages/page-admin-profile-list/cypress/plugins/index.js
View file @
fe3b37b8
...
...
@@ -14,4 +14,8 @@
const
cucumber
=
require
(
'
cypress-cucumber-preprocessor
'
).
default
module
.
exports
=
(
on
,
config
)
=>
{
on
(
'
file:preprocessor
'
,
cucumber
())
on
(
'
before:browser:launch
'
,
(
browser
,
launchOptions
)
=>
{
launchOptions
.
args
.
push
(
'
--lang=en
'
);
return
launchOptions
})
}
uid-pages/page-admin-resource-list/cypress.json
View file @
fe3b37b8
...
...
@@ -11,5 +11,6 @@
"numTestsKeptInMemory"
:
20
,
"viewportHeight"
:
768
,
"viewportWidth"
:
1366
,
"testFiles"
:
"**/*.feature"
"testFiles"
:
"**/*.feature"
,
"chromeWebSecurity"
:
false
}
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment