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
a761f27d
Unverified
Commit
a761f27d
authored
4 years ago
by
Jessica DeWitt
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
deleted file (#13016)
parent
b297dcff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/test/metabase/redux/metadata.e2e.spec.js
+0
-104
0 additions, 104 deletions
frontend/test/metabase/redux/metadata.e2e.spec.js
with
0 additions
and
104 deletions
frontend/test/metabase/redux/metadata.e2e.spec.js
deleted
100644 → 0
+
0
−
104
View file @
b297dcff
/**
* Goals for this test suite:
* - serve as a documentation for how to use metadata loading actions
* - see if the metadata gets properly hydrated in `getMetadata` of selectors/metadata
* - see if metadata loading actions can be safely used in isolation from each others
*/
import
{
getMetadata
}
from
"
metabase/selectors/metadata
"
;
import
{
createTestStore
,
useSharedAdminLogin
}
from
"
__support__/e2e
"
;
import
{
fetchMetrics
,
fetchTables
}
from
"
metabase/redux/metadata
"
;
const
metadata
=
store
=>
getMetadata
(
store
.
getState
());
describe
(
"
metadata/redux
"
,
()
=>
{
beforeAll
(
async
()
=>
{
useSharedAdminLogin
();
});
describe
(
"
METRIC ACTIONS
"
,
()
=>
{
// TODO Atte Keinänen 6/23/17: Remove metrics after their creation in other tests
describe
(
"
fetchMetrics()
"
,
()
=>
{
pending
();
it
(
"
fetches no metrics in empty db
"
,
async
()
=>
{
const
store
=
createTestStore
();
await
store
.
dispatch
(
fetchMetrics
());
expect
(
metadata
(
store
).
metricsList
().
length
).
toBe
(
0
);
});
});
describe
(
"
updateMetric(metric)
"
,
()
=>
{
// await store.dispatch(updateMetric(metric));
});
describe
(
"
updateMetricImportantFields(...)
"
,
()
=>
{
// await store.dispatch(updateMetricImportantFields(metricId, importantFieldIds));
});
describe
(
"
fetchMetricTable(metricId)
"
,
()
=>
{
// await store.dispatch(fetchMetricTable(metricId));
});
describe
(
"
fetchMetricRevisions(metricId)
"
,
()
=>
{
// await store.dispatch(fetchMetricRevisions(metricId));
});
});
describe
(
"
SEGMENT ACTIONS
"
,
()
=>
{
describe
(
"
fetchSegments()
"
,
()
=>
{
// await store.dispatch(fetchSegments());
});
describe
(
"
updateSegment(segment)
"
,
()
=>
{
// await store.dispatch(updateSegment(segment));
});
});
describe
(
"
DATABASE ACTIONS
"
,
()
=>
{
describe
(
"
fetchDatabaseMetadata(dbId)
"
,
()
=>
{
// await store.dispatch(fetchDatabaseMetadata(1));
});
describe
(
"
updateDatabase(database)
"
,
()
=>
{
// await store.dispatch(updateDatabase(database));
});
});
describe
(
"
TABLE ACTIONS
"
,
()
=>
{
describe
(
"
fetchTables()
"
,
()
=>
{
// TODO Atte Keinänen 6/23/17: Figure out why on CI two databases show up but locally only one
pending
();
it
(
"
fetches the sample dataset tables
"
,
async
()
=>
{
// what is the difference between fetchDatabases and fetchTables?
const
store
=
createTestStore
();
expect
(
metadata
(
store
).
tablesList
().
length
).
toBe
(
0
);
expect
(
metadata
(
store
).
databasesList
().
length
).
toBe
(
0
);
await
store
.
dispatch
(
fetchTables
());
expect
(
metadata
(
store
).
tablesList
().
length
).
toBe
(
4
);
expect
(
metadata
(
store
).
databasesList
().
length
).
toBe
(
1
);
});
// await store.dispatch(fetchTables());
});
describe
(
"
updateTable(table)
"
,
()
=>
{
// await store.dispatch(updateTable(table));
});
describe
(
"
fetchTableMetadata(tableId)
"
,
()
=>
{
// await store.dispatch(fetchTableMetadata(tableId));
});
describe
(
"
fetchFieldValues(fieldId)
"
,
()
=>
{
// await store.dispatch(fetchFieldValues());
});
});
describe
(
"
MISC ACTIONS
"
,
()
=>
{
describe
(
"
addParamValues(paramValues)
"
,
()
=>
{
// await store.dispatch(addParamValues(paramValues));
});
describe
(
"
updateField(field)
"
,
()
=>
{
// await store.dispatch(updateField(field));
});
describe
(
"
fetchRevisions(type, id)
"
,
()
=>
{
// await store.dispatch(fetchRevisions(type, id));
});
describe
(
"
fetchSegmentFields(segmentId)
"
,
()
=>
{
// await store.dispatch(fetchSegmentFields(segmentId));
});
describe
(
"
fetchSegmentRevisions(segments)
"
,
()
=>
{
// await store.dispatch(fetchSegmentRevisions(segmentId));
});
});
});
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