Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai03-protractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandre Ducarne
ai03-protractor
Commits
1cf14954
Commit
1cf14954
authored
6 years ago
by
JiggyJinjo
Browse files
Options
Downloads
Patches
Plain Diff
Added new ESLint Rules
parent
7eb38a1e
No related branches found
Branches containing commit
Tags
V1.0
No related merge requests found
Pipeline
#30030
canceled
6 years ago
Stage: build
Stage: test
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.eslintrc.js
+4
-1
4 additions, 1 deletion
.eslintrc.js
pageObjects/README.md
+1
-0
1 addition, 0 deletions
pageObjects/README.md
protractor.conf.js
+17
-17
17 additions, 17 deletions
protractor.conf.js
with
22 additions
and
18 deletions
.eslintrc.js
+
4
−
1
View file @
1cf14954
...
...
@@ -2,6 +2,9 @@ module.exports = {
"
extends
"
:
"
google
"
,
"
parser
"
:
"
babel-eslint
"
,
"
rules
"
:
{
"
linebreak-style
"
:
0
"
linebreak-style
"
:
0
,
"
indent
"
:
[
"
error
"
,
4
],
"
max-len
"
:
[
2
,
160
,
4
,
{
"
ignoreUrls
"
:
true
}]
}
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pageObjects/README.md
0 → 100644
+
1
−
0
View file @
1cf14954
This is where DOM elements should be referenced to ensure tests maintainability
\ No newline at end of file
This diff is collapsed.
Click to expand it.
protractor.conf.js
+
17
−
17
View file @
1cf14954
le
t
HtmlReporter
=
require
(
'
protractor-beautiful-reporter
'
);
var
path
=
require
(
'
path
'
);
cons
t
HtmlReporter
=
require
(
'
protractor-beautiful-reporter
'
);
const
path
=
require
(
'
path
'
);
exports
.
config
=
{
seleniumAddress
:
'
http://localhost:4444/wd/hub
'
,
...
...
@@ -10,14 +10,14 @@ exports.config = {
seleniumArgs
:
[],
specs
:
[
'
./specs/*.spec.js
'
'
./specs/*.spec.js
'
,
],
capabilities
:
{
browserName
:
'
chrome
'
,
chromeOptions
:
{
args
:
[
"
--window-size=1910,1080
"
]
}
args
:
[
'
--window-size=1910,1080
'
],
}
,
},
// A base URL for your application under test. Calls to protractor.get()
...
...
@@ -26,7 +26,7 @@ exports.config = {
framework
:
'
jasmine
'
,
onPrepare
:
function
()
{
onPrepare
:
function
()
{
// Add a screenshot reporter:
jasmine
.
getEnv
().
addReporter
(
new
HtmlReporter
({
preserveDirectory
:
false
,
...
...
@@ -36,26 +36,26 @@ exports.config = {
baseDirectory
:
'
reports-tmp
'
,
clientDefaults
:
{
columnSettings
:
{
displaySessionId
:
false
}
displaySessionId
:
false
,
}
,
},
pathBuilder
:
function
pathBuilder
(
spec
,
descriptions
,
results
,
capabilities
)
{
// Return '<30-12-2016>/<browser>/<specname>' as path for screenshots:
// Example: '30-12-2016/firefox/list-should work'.
var
currentDate
=
new
Date
()
,
day
=
currentDate
.
getDate
()
,
month
=
currentDate
.
getMonth
()
+
1
,
year
=
currentDate
.
getFullYear
();
const
currentDate
=
new
Date
()
;
const
day
=
currentDate
.
getDate
()
;
const
month
=
currentDate
.
getMonth
()
+
1
;
const
year
=
currentDate
.
getFullYear
();
var
validDescriptions
=
descriptions
.
map
(
function
(
description
)
{
const
validDescriptions
=
descriptions
.
map
(
function
(
description
)
{
return
description
.
replace
(
'
/
'
,
'
@
'
);
});
return
path
.
join
(
day
+
"
-
"
+
month
+
"
-
"
+
year
,
day
+
'
-
'
+
month
+
'
-
'
+
year
,
// capabilities.get('browserName'),
validDescriptions
.
join
(
'
-
'
));
}
}
,
}).
getJasmine2Reporter
());
},
...
...
@@ -64,5 +64,5 @@ exports.config = {
showColors
:
true
,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval
:
30000
,
}
};
\ No newline at end of file
},
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment