-
Notifications
You must be signed in to change notification settings - Fork 11
add current step to code changed, run started and run completed events #1327
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
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -142,7 +142,7 @@ describe("when embedded, output_only & output_split_view are true", () => { | |||||||||
|
|
||||||||||
| // Run the code and check it executed without error | ||||||||||
| cy.get("editor-wc").shadow().find("button").contains("Run").click(); | ||||||||||
| cy.get("#results").should("contain", '{"errorDetails":{}}'); | ||||||||||
| cy.get("#results").should("contain", '"errorDetails":{}'); | ||||||||||
|
||||||||||
|
|
||||||||||
| // Check that the visual output panel is displayed in split view mode (vs tabbed view) | ||||||||||
| cy.get("editor-wc").shadow().contains("Visual output").should("be.visible"); | ||||||||||
|
|
@@ -192,6 +192,6 @@ describe("when embedded, output_only & output_split_view are true", () => { | |||||||||
|
|
||||||||||
| // Run the code and check it executed without error | ||||||||||
| cy.get("editor-wc").shadow().find("button").contains("Run").click(); | ||||||||||
| cy.get("#results").should("contain", '{"errorDetails":{}}'); | ||||||||||
| cy.get("#results").should("contain", '"errorDetails":{}'); | ||||||||||
|
||||||||||
| cy.get("#results").should("contain", '"errorDetails":{}'); | |
| cy.get("#results") | |
| .should("contain", '"errorDetails":{}') | |
| .and("contain", '"step":'); |
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.
This test assertion could be more comprehensive by also verifying that the step field is present and has a valid value in the payload. Consider using a more specific assertion that checks for both
"errorDetails":{}and"step":to ensure the new functionality is properly tested.