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
f326f53a
Unverified
Commit
f326f53a
authored
3 years ago
by
Nemanja Glumac
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix typing flake in models query editor test (#20086)
parent
562b424a
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/scenarios/models/models-query-editor.cy.spec.js
+11
-13
11 additions, 13 deletions
.../metabase/scenarios/models/models-query-editor.cy.spec.js
with
11 additions
and
13 deletions
frontend/test/metabase/scenarios/models/models-query-editor.cy.spec.js
+
11
−
13
View file @
f326f53a
...
...
@@ -154,35 +154,33 @@ describe("scenarios > models query editor", () => {
name
:
"
Erroring Model
"
,
dataset
:
true
,
native
:
{
query
:
"
S
"
,
// Let's use API to type the most of the query, but stil make it invalid
query
:
"
SELECT
"
,
},
},
{
visitQuestion
:
true
},
);
openDetailsSidebar
();
cy
.
findByText
(
"
Edit query definition
"
).
click
();
cy
.
findByText
(
"
Customize metadata
"
).
click
();
cy
.
findByText
(
/Syntax error in SQL/
);
cy
.
findByText
(
"
Metadata
"
).
click
();
cy
.
findByText
(
/Syntax error in SQL/
);
cy
.
findByText
(
"
Query
"
).
click
();
cy
.
findByText
(
/Syntax error in SQL/
);
// Using `text-input` here, which is the textarea HTML element instead of the `ace_content` (div)
cy
.
get
(
"
.ace_text-input
"
).
type
(
"
1
"
);
cy
.
get
(
"
.ace_content
"
).
type
(
"
{backspace}SELECT * FROM ORDERS
"
);
runNativeQuery
();
cy
.
get
(
"
.TableInteractive
"
).
within
(()
=>
{
cy
.
findByText
(
"
TAX
"
);
cy
.
findByText
(
"
TOTAL
"
);
});
cy
.
get
(
"
.cellData
"
).
contains
(
1
);
cy
.
findByText
(
/Syntax error in SQL/
).
should
(
"
not.exist
"
);
cy
.
button
(
"
Save changes
"
).
click
();
cy
.
wait
(
"
@updateCard
"
);
cy
.
get
(
"
.TableInteractive
"
).
within
(()
=>
{
cy
.
findByText
(
"
TAX
"
);
cy
.
findByText
(
"
TOTAL
"
);
});
cy
.
get
(
"
.cellData
"
).
contains
(
1
);
cy
.
findByText
(
/Syntax error in SQL/
).
should
(
"
not.exist
"
);
});
});
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