Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
6895f08d
Commit
6895f08d
authored
May 18, 2021
by
Magnus Westergaard
Browse files
DEICH-5721
: Update e2e-tests to ignore invisible elements.
parent
81e3d59b
Changes
1
Hide whitespace changes
Inline
Side-by-side
e2e-tests/cypress/integration/deichman.no/deichman.no_smoketest_spec.js
View file @
6895f08d
...
...
@@ -62,8 +62,8 @@ describe("Deichman.no - smoketest (uten innlogging)", () => {
cy
.
wait
(
"
@getServices
"
)
cy
.
url
().
should
(
"
include
"
,
"
vi-tilbyr
"
)
cy
.
get
(
"
[data-cy=service-search-results]
"
).
within
(()
=>
{
cy
.
get
(
"
[data-cy=card-grid]
"
).
should
(
"
have.length
"
,
2
)
cy
.
get
(
"
[data-cy=card-title]
"
).
should
(
"
have.length
"
,
4
)
cy
.
get
(
"
[data-cy=card-grid]
:visible
"
).
should
(
"
have.length
"
,
2
)
cy
.
get
(
"
[data-cy=card-title]
:visible
"
).
should
(
"
have.length
"
,
4
)
})
// "Digitalt" listing
...
...
@@ -76,9 +76,9 @@ describe("Deichman.no - smoketest (uten innlogging)", () => {
cy
.
url
().
should
(
"
include
"
,
"
digitalt
"
)
cy
.
get
(
"
[data-cy=event-title]
"
).
should
(
"
have.length
"
,
1
)
cy
.
get
(
"
[data-cy=service-search-results]
"
).
within
(()
=>
{
cy
.
get
(
"
[data-cy=card-grid]
"
).
should
(
"
have.length
"
,
1
)
cy
.
get
(
"
[data-cy=card-title]
"
).
should
(
"
have.length
"
,
2
)
cy
.
get
(
"
[data-cy=card-title]
"
).
eq
(
1
).
click
()
cy
.
get
(
"
[data-cy=card-grid]
:visible
"
).
should
(
"
have.length
"
,
1
)
cy
.
get
(
"
[data-cy=card-title]
:visible
"
).
should
(
"
have.length
"
,
2
)
cy
.
get
(
"
[data-cy=card-title]
:visible
"
).
eq
(
1
).
click
()
})
// service landing page
...
...
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