Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
nghyd
Commits
089f3de8
Commit
089f3de8
authored
4 years ago
by
Mathias Chouet
Browse files
Options
Downloads
Patches
Plain Diff
Updated e2e for new Section results
parent
079d21da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/calculator.po.ts
+12
-7
12 additions, 7 deletions
e2e/calculator.po.ts
e2e/compute-reset-chained-links.e2e-spec.ts
+1
-0
1 addition, 0 deletions
e2e/compute-reset-chained-links.e2e-spec.ts
with
13 additions
and
7 deletions
e2e/calculator.po.ts
+
12
−
7
View file @
089f3de8
...
...
@@ -121,22 +121,27 @@ export class CalculatorPage {
async
hasResults
()
{
return
(
await
element
(
by
.
css
(
"
fixedvar-results fixed-results > .fixed-results-container
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
fixedvar-results fixed-results > .fixed-results-container
"
)
||
await
element
(
by
.
css
(
"
fixedvar-results results-chart > chart-results-container
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
fixedvar-results results-chart > chart-results-container
"
)
||
await
element
(
by
.
css
(
"
section-results fixed-results > .fixed-results-container
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
section-results fixed-results > .fixed-results-container
"
)
||
await
element
(
by
.
css
(
"
remous-results #main-chart
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
remous-results #main-chart
"
)
||
await
element
(
by
.
css
(
"
pab-results pab-results-table
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
pab-results pab-results-table
"
)
||
await
element
(
by
.
css
(
"
macrorugo-compound-results macrorugo-compound-results-table
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
macrorugo-compound-results macrorugo-compound-results-table
"
)
||
await
element
(
by
.
css
(
"
jet-results .fixed-results-container
"
)
).
isPresent
()
await
this
.
presentAndVisible
(
"
jet-results .fixed-results-container
"
)
);
}
async
presentAndVisible
(
selector
:
string
):
Promise
<
boolean
>
{
const
elt
=
element
(
by
.
css
(
selector
));
return
await
elt
.
isPresent
()
&&
await
elt
.
isDisplayed
();
}
/**
* For a given <table> element, check that values of all cells of all rows in <tbody> are
* different from "NaN", "ERR" and optionally ""
...
...
This diff is collapsed.
Click to expand it.
e2e/compute-reset-chained-links.e2e-spec.ts
+
1
−
0
View file @
089f3de8
...
...
@@ -45,6 +45,7 @@ describe("ngHyd − compute then reset chained results − ", () => {
// down-most module should have results
let
hasResults
=
await
calcPage
.
hasResults
();
expect
(
hasResults
).
toBe
(
true
);
// up-most should not
await
navbar
.
clickCalculatorTabForUid
(
"
ZTFxeW
"
);
hasResults
=
await
calcPage
.
hasResults
();
...
...
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