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
7ebc4a15
Unverified
Commit
7ebc4a15
authored
Nov 08, 2019
by
Hugo Häggmark
Committed by
GitHub
Nov 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: We should not click on default button when there is only one ds (#20266)
parent
3111c362
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
public/e2e-test/pages/datasources/editDataSourcePage.ts
+0
-4
public/e2e-test/scenarios/smoke.test.ts
+0
-1
No files found.
public/e2e-test/pages/datasources/editDataSourcePage.ts
View file @
7ebc4a15
...
...
@@ -11,7 +11,6 @@ import {
export
interface
EditDataSourcePage
{
name
:
InputPageObjectType
;
default
:
ClickablePageObjectType
;
delete
:
ClickablePageObjectType
;
saveAndTest
:
ClickablePageObjectType
;
alert
:
PageObjectType
;
...
...
@@ -21,9 +20,6 @@ export interface EditDataSourcePage {
export
const
editDataSourcePage
=
new
TestPage
<
EditDataSourcePage
>
({
pageObjects
:
{
name
:
new
InputPageObject
(
Selector
.
fromAriaLabel
(
'Datasource settings page name input field'
)),
default
:
new
ClickablePageObject
(
Selector
.
fromSelector
(
'[aria-label="Datasource settings page basic settings"] .gf-form-switch'
)
),
delete
:
new
ClickablePageObject
(
Selector
.
fromAriaLabel
(
'Delete button'
)),
saveAndTest
:
new
ClickablePageObject
(
Selector
.
fromAriaLabel
(
'Save and Test button'
)),
alert
:
new
PageObject
(
Selector
.
fromAriaLabel
(
'Datasource settings page Alert'
)),
...
...
public/e2e-test/scenarios/smoke.test.ts
View file @
7ebc4a15
...
...
@@ -25,7 +25,6 @@ const addTestDataSourceAndVerify = async (page: Page) => {
await
editDataSourcePage
.
init
(
page
);
await
editDataSourcePage
.
waitForNavigation
();
await
editDataSourcePage
.
pageObjects
.
name
.
enter
(
testDataSourceName
);
await
editDataSourcePage
.
pageObjects
.
default
.
click
();
await
editDataSourcePage
.
pageObjects
.
saveAndTest
.
click
();
await
editDataSourcePage
.
pageObjects
.
alert
.
exists
();
await
editDataSourcePage
.
pageObjects
.
alertMessage
.
containsText
(
'Data source is working'
);
...
...
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