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
a0301bc7
Unverified
Commit
a0301bc7
authored
4 years ago
by
Jessica DeWitt
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
deleted settings.e2e.spec.js (#13008)
parent
4dc498cf
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/admin/settings/settings.e2e.spec.js
+0
-74
0 additions, 74 deletions
frontend/test/metabase/admin/settings/settings.e2e.spec.js
with
0 additions
and
74 deletions
frontend/test/metabase/admin/settings/settings.e2e.spec.js
deleted
100644 → 0
+
0
−
74
View file @
4dc498cf
// Converted from an old Selenium E2E test
import
"
metabase/plugins/builtin
"
;
import
{
useSharedAdminLogin
,
createTestStore
}
from
"
__support__/e2e
"
;
import
{
mount
}
from
"
enzyme
"
;
import
SettingInput
from
"
metabase/admin/settings/components/widgets/SettingInput
"
;
import
{
INITIALIZE_SETTINGS
,
UPDATE_SETTING
,
}
from
"
metabase/admin/settings/settings
"
;
import
{
LOAD_CURRENT_USER
}
from
"
metabase/redux/user
"
;
import
{
setInputValue
}
from
"
__support__/enzyme
"
;
describe
(
"
admin/settings
"
,
()
=>
{
beforeAll
(
async
()
=>
useSharedAdminLogin
());
// TODO Atte Keinänen 6/22/17: Disabled because we already have converted this to Jest&Enzyme in other branch
describe
(
"
admin settings
"
,
()
=>
{
// pick a random site name to try updating it to
const
siteName
=
"
Metabase
"
+
Math
.
random
();
it
(
"
should save the setting
"
,
async
()
=>
{
const
store
=
await
createTestStore
();
store
.
pushPath
(
"
/admin/settings/general
"
);
const
app
=
mount
(
store
.
getAppContainer
());
await
store
.
waitForActions
([
LOAD_CURRENT_USER
,
INITIALIZE_SETTINGS
]);
// first just make sure the site name isn't already set (it shouldn't since we're using a random name)
const
input
=
app
.
find
(
SettingInput
)
.
first
()
.
find
(
"
input
"
);
expect
(
input
.
prop
(
"
value
"
)).
not
.
toBe
(
siteName
);
// clear the site name input, send the keys corresponding to the site name, then blur to trigger the update
setInputValue
(
input
,
siteName
);
await
store
.
waitForActions
([
UPDATE_SETTING
]);
});
it
(
"
should show the updated name after page reload
"
,
async
()
=>
{
const
store
=
await
createTestStore
();
store
.
pushPath
(
"
/admin/settings/general
"
);
const
app
=
mount
(
store
.
getAppContainer
());
await
store
.
waitForActions
([
LOAD_CURRENT_USER
,
INITIALIZE_SETTINGS
]);
const
input
=
app
.
find
(
SettingInput
)
.
first
()
.
find
(
"
input
"
);
expect
(
input
.
prop
(
"
value
"
)).
toBe
(
siteName
);
});
it
(
"
should show display nested settings
"
,
async
()
=>
{
const
store
=
await
createTestStore
();
store
.
pushPath
(
"
/admin/settings/authentication/google
"
);
const
app
=
mount
(
store
.
getAppContainer
());
await
store
.
waitForActions
([
LOAD_CURRENT_USER
,
INITIALIZE_SETTINGS
]);
const
text
=
app
.
find
(
"
p.text-medium
"
)
.
last
()
.
text
();
expect
(
text
).
toEqual
(
"
Allow users to sign up on their own if their Google account email address is from:
"
,
);
});
});
});
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