-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
combine query execution test case as they are not independent #3655
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ describe("Run query", () => { | |
visitWithToken(USER_TOKEN_WITH_PERMISSIONS); | ||
}); | ||
|
||
it("Can execute query and see it in the queries tab", () => { | ||
it("Can execute query, see it in the queries tab and delete it", () => { | ||
cy.get('[data-test-id="right-pane-container"] >div:visible').as("queryEditor"); | ||
|
||
// Drag concept to editor | ||
|
@@ -40,18 +40,16 @@ describe("Run query", () => { | |
cy.get("@queryEditor").find('[data-test-id="query-runner-button"]').click(); | ||
|
||
cy.get("@queryEditor").contains("Ergebnisse"); | ||
}); | ||
|
||
it("Can see the executed query in the queries tab", () => { | ||
// Lookup executed query in the previous queries tab | ||
cy.get('[data-test-id="left-pane"]').contains("Anfragen").click(); | ||
|
||
cy.get('[data-test-id="left-pane-container"]').as("leftPaneContainer"); | ||
|
||
cy.get("@leftPaneContainer").contains("Ergebnisse"); | ||
cy.get("@leftPaneContainer").contains("Concept1"); | ||
}); | ||
|
||
it("Can delete the query", () => { | ||
// Delete the Query | ||
cy.get('[data-test-id="left-pane"]').contains("Anfragen").click(); | ||
|
||
cy.get('[data-test-id="left-pane-container"]').as("leftPaneContainer"); | ||
|
@@ -60,6 +58,8 @@ describe("Run query", () => { | |
|
||
cy.get('@executionList').find('[data-test-id="project-item-delete-button"]').click(); | ||
cy.get('@executionList').contains('Anfrage jetzt löschen').click(); | ||
|
||
cy.get('@leftPaneContainer').contains('Keine Anfragen / Formulare gefunden') | ||
Comment on lines
+61
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Um sicher zu gehen, dass die Anfrage wirklich gelöscht wurde |
||
}); | ||
}); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,6 +276,8 @@ const ProjectItem = forwardRef< | |
<IconButton | ||
icon={isShared ? faUser : faUserRegular} | ||
bare | ||
title="share" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nicht unbedingt nötig, der Browser hatte sich nur Beschwert, dass der button kein Title hatte |
||
data-test-id="share" | ||
onClick={onIndicateShare} | ||
/> | ||
</WithTooltip> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das hatte immer hierfür gesorgt: