Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
17d08b38
Commit
17d08b38
authored
7 years ago
by
Atte Keinänen
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests and lint errors
parent
f9fe3a17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/test/admin/databases/DatabaseEditApp.integ.spec.js
+3
-18
3 additions, 18 deletions
frontend/test/admin/databases/DatabaseEditApp.integ.spec.js
with
3 additions
and
18 deletions
frontend/test/admin/databases/DatabaseEditApp.integ.spec.js
+
3
−
18
View file @
17d08b38
...
...
@@ -16,8 +16,7 @@ import {
SYNC_DATABASE_SCHEMA
,
DISCARD_SAVED_FIELD_VALUES
,
UPDATE_DATABASE
,
saveDatabase
,
initializeDatabase
,
MIGRATE_TO_NEW_SCHEDULING_SETTINGS
MIGRATE_TO_NEW_SCHEDULING_SETTINGS
,
DEFAULT_SCHEDULES
}
from
"
metabase/admin/databases/database
"
;
import
DatabaseEditApp
,
{
Tab
}
from
"
metabase/admin/databases/containers/DatabaseEditApp
"
;
import
DatabaseEditForms
from
"
metabase/admin/databases/components/DatabaseEditForms
"
;
...
...
@@ -29,7 +28,6 @@ import Select from "metabase/components/Select";
import
ColumnarSelector
from
"
metabase/components/ColumnarSelector
"
;
import
{
click
,
clickButton
}
from
"
__support__/enzyme_utils
"
;
import
{
MetabaseApi
}
from
"
metabase/services
"
;
import
{
getEditingDatabase
}
from
"
metabase/admin/databases/selectors
"
;
import
_
from
"
underscore
"
;
// Currently a lot of duplication with SegmentPane tests
...
...
@@ -171,7 +169,7 @@ describe("DatabaseEditApp", () => {
const
schedulingForm
=
dbEditApp
.
find
(
DatabaseSchedulingForm
)
expect
(
schedulingForm
.
length
).
toBe
(
1
)
expect
(
schedulingForm
.
find
(
Select
).
first
().
text
()).
toEqual
(
"
Dai
ly
"
);
expect
(
schedulingForm
.
find
(
Select
).
first
().
text
()).
toEqual
(
"
Hour
ly
"
);
const
syncOptions
=
schedulingForm
.
find
(
SyncOption
);
const
syncOptionOften
=
syncOptions
.
first
();
...
...
@@ -251,20 +249,7 @@ describe("DatabaseEditApp", () => {
await
MetabaseApi
.
db_update
({
...
database
,
is_full_sync
:
true
,
schedules
:
{
"
cache_field_values
"
:
{
"
schedule_day
"
:
null
,
"
schedule_frame
"
:
null
,
"
schedule_hour
"
:
null
,
"
schedule_type
"
:
"
hourly
"
},
"
metadata_sync
"
:
{
"
schedule_day
"
:
null
,
"
schedule_frame
"
:
null
,
"
schedule_hour
"
:
0
,
"
schedule_type
"
:
"
daily
"
}
},
schedules
:
DEFAULT_SCHEDULES
,
details
:
{
...
database
.
details
,
"
let-user-control-scheduling
"
:
false
...
...
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