Skip to content

Commit

Permalink
Обновление зависимостей @csssr/e2e-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomResh authored Oct 12, 2022
1 parent e45822f commit dd1be58
Show file tree
Hide file tree
Showing 5 changed files with 1,416 additions and 1,249 deletions.
1 change: 1 addition & 0 deletions e2e-tests/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Этот файл сгенерирован автоматически, не редактируйте его вручную
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"git.ignoreLimitWarning": true
}
16 changes: 16 additions & 0 deletions e2e-tests/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@
"problemMatcher": [],
"presentation": { "showReuseMessage": false },
"group": "build"
},
{
"type": "shell",
"label": "Nightwatch: запустить все тесты в текущей папке в Chrome на удалённом сервере",
"command": "yarn et nightwatch:run --browser remote_chrome --test='${fileDirname}/*.test.js'",
"problemMatcher": [],
"presentation": { "showReuseMessage": false },
"group": "build"
},
{
"type": "shell",
"label": "Nightwatch: запустить все тесты в текущей папке рекурсивно в Chrome на удалённом сервере",
"command": "yarn et nightwatch:run --browser remote_chrome --test='${fileDirname}/**/*.test.js'",
"problemMatcher": [],
"presentation": { "showReuseMessage": false },
"group": "build"
}
],
"inputs": [
Expand Down
7 changes: 6 additions & 1 deletion e2e-tests/nightwatch/jenkins-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ browserCredentials = basicAuths
)
} as List

defaultCredentials = [
usernamePassword(credentialsId: "browserstack", usernameVariable: "BROWSERSTACK_USER", passwordVariable: "BROWSERSTACK_KEY"),
usernamePassword(credentialsId: "selenium", usernameVariable: "SELENIUM_USERNAME", passwordVariable: "SELENIUM_PASSWORD")
]

filesCheckboxes = getTestFiles()
.collect {
booleanParam(defaultValue: true, name: it)
Expand Down Expand Up @@ -137,7 +142,7 @@ pipeline {

steps {
script {
withCredentials(browserCredentials + [usernamePassword(credentialsId: "browserstack", usernameVariable: "BROWSERSTACK_USER", passwordVariable: "BROWSERSTACK_KEY")]) {
withCredentials(browserCredentials + defaultCredentials) {
sh """
pwd
cd e2e-tests
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"private": true,
"prettier": "@csssr/e2e-tools/prettier",
"devDependencies": {
"@csssr/e2e-tools": "~1.6.6",
"@csssr/e2e-tools-nightwatch": "~1.15.14"
"@csssr/e2e-tools": "~1.6.9",
"@csssr/e2e-tools-nightwatch": "1.15.17"
},
"resolutions": {
"netmask": ">=2.0.1"
Expand Down
Loading

0 comments on commit dd1be58

Please sign in to comment.