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
f0e63361
Unverified
Commit
f0e63361
authored
9 months ago
by
Alexander Polyankin
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add repro for "Join UI picks the first schema even if a different one is selected" (#44837)
parent
8651009e
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
e2e/test/scenarios/question/notebook-data-source.cy.spec.ts
+32
-5
32 additions, 5 deletions
e2e/test/scenarios/question/notebook-data-source.cy.spec.ts
with
32 additions
and
5 deletions
e2e/test/scenarios/question/notebook-data-source.cy.spec.ts
+
32
−
5
View file @
f0e63361
...
...
@@ -5,8 +5,9 @@ import {
ORDERS_MODEL_ID
,
SECOND_COLLECTION_ID
,
}
from
"
e2e/support/cypress_sample_instance_data
"
;
import
type
{
StructuredQuestionDetails
}
from
"
e2e/support/helpers
"
;
import
{
join
,
type
StructuredQuestionDetails
,
createQuestion
,
entityPickerModal
,
entityPickerModalItem
,
...
...
@@ -151,17 +152,19 @@ describe("scenarios > notebook > data source", () => {
});
it
(
"
should correctly display a table from a multi-schema database (metabase#39807)
"
,
"
should correctly display a table from a multi-schema database (metabase#39807
,metabase#11958
)
"
,
{
tags
:
"
@external
"
},
()
=>
{
const
dialect
=
"
postgres
"
;
const
TEST_TABLE
=
"
multi_schema
"
;
const
testTable1
=
"
multi_schema
"
;
const
testTable2
=
"
many_data_types
"
;
const
dbName
=
"
Writable Postgres12
"
;
const
schemaName
=
"
Wild
"
;
const
tableName
=
"
Animals
"
;
resetTestTable
({
type
:
dialect
,
table
:
TEST_TABLE
});
resetTestTable
({
type
:
dialect
,
table
:
testTable1
});
resetTestTable
({
type
:
dialect
,
table
:
testTable2
});
restore
(
`
${
dialect
}
-writable`
);
cy
.
signInAsAdmin
();
...
...
@@ -188,12 +191,36 @@ describe("scenarios > notebook > data source", () => {
assertDataPickerEntitySelected
(
2
,
tableName
);
entityPickerModalTab
(
"
Recents
"
).
click
();
cy
.
contains
(
"
button
"
,
"
Animals
"
)
.
should
(
"
exist
"
)
.
and
(
"
contain.text
"
,
tableName
)
.
and
(
"
have.attr
"
,
"
aria-selected
"
,
"
true
"
);
entityPickerModalTab
(
"
Tables
"
).
click
();
cy
.
findByText
(
dbName
).
click
();
cy
.
findByText
(
schemaName
).
click
();
cy
.
findByText
(
tableName
).
click
();
});
cy
.
log
(
"
select a table from the second schema
"
);
join
();
entityPickerModal
().
within
(()
=>
{
entityPickerModalTab
(
"
Tables
"
).
click
();
cy
.
findByText
(
"
Public
"
).
click
();
cy
.
findByText
(
"
Many Data Types
"
).
click
();
});
popover
().
findByText
(
"
Name
"
).
click
();
popover
().
findByText
(
"
Text
"
).
click
();
cy
.
log
(
"
select a table from the third schema
"
);
join
();
entityPickerModal
().
within
(()
=>
{
entityPickerModalTab
(
"
Tables
"
).
click
();
cy
.
findByText
(
"
Domestic
"
).
click
();
cy
.
findByText
(
"
Animals
"
).
click
();
});
popover
().
findByText
(
"
Name
"
).
click
();
popover
().
findByText
(
"
Name
"
).
click
();
},
);
...
...
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