Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
20f81539
Unverified
Commit
20f81539
authored
Jun 11, 2019
by
Hugo Häggmark
Committed by
GitHub
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Adds better logging to e2e tests (#17511)
parent
756989c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
public/e2e-test/core/pageObjects.ts
+3
-0
public/e2e-test/core/pages.ts
+1
-0
No files found.
public/e2e-test/core/pageObjects.ts
View file @
20f81539
...
@@ -56,6 +56,7 @@ export class ClickablePageObject extends PageObject implements ClickablePageObje
...
@@ -56,6 +56,7 @@ export class ClickablePageObject extends PageObject implements ClickablePageObje
}
}
click
=
async
():
Promise
<
void
>
=>
{
click
=
async
():
Promise
<
void
>
=>
{
console
.
log
(
'Trying to click on:'
,
this
.
selector
);
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
expect
(
this
.
page
).
toClick
(
this
.
selector
);
await
expect
(
this
.
page
).
toClick
(
this
.
selector
);
};
};
...
@@ -67,6 +68,7 @@ export class InputPageObject extends PageObject implements InputPageObjectType {
...
@@ -67,6 +68,7 @@ export class InputPageObject extends PageObject implements InputPageObjectType {
}
}
enter
=
async
(
text
:
string
):
Promise
<
void
>
=>
{
enter
=
async
(
text
:
string
):
Promise
<
void
>
=>
{
console
.
log
(
`Trying to enter text:
${
text
}
into:`
,
this
.
selector
);
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
expect
(
this
.
page
).
toFill
(
this
.
selector
,
text
);
await
expect
(
this
.
page
).
toFill
(
this
.
selector
,
text
);
};
};
...
@@ -78,6 +80,7 @@ export class SelectPageObject extends PageObject implements SelectPageObjectType
...
@@ -78,6 +80,7 @@ export class SelectPageObject extends PageObject implements SelectPageObjectType
}
}
select
=
async
(
text
:
string
):
Promise
<
void
>
=>
{
select
=
async
(
text
:
string
):
Promise
<
void
>
=>
{
console
.
log
(
`Trying to select text:
${
text
}
in dropdown:`
,
this
.
selector
);
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
expect
(
this
.
page
).
not
.
toBeNull
();
await
this
.
page
.
select
(
this
.
selector
,
text
);
await
this
.
page
.
select
(
this
.
selector
,
text
);
};
};
...
...
public/e2e-test/core/pages.ts
View file @
20f81539
...
@@ -57,6 +57,7 @@ export class TestPage<T> implements TestPageType<T> {
...
@@ -57,6 +57,7 @@ export class TestPage<T> implements TestPageType<T> {
navigateTo
=
async
():
Promise
<
void
>
=>
{
navigateTo
=
async
():
Promise
<
void
>
=>
{
this
.
throwIfNotInitialized
();
this
.
throwIfNotInitialized
();
console
.
log
(
'Trying to navigate to:'
,
this
.
pageUrl
);
await
this
.
page
.
goto
(
this
.
pageUrl
);
await
this
.
page
.
goto
(
this
.
pageUrl
);
};
};
...
...
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