-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Debug button opens the Error tab #33337
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures/ApiError_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as _ from "../../../../support/Objects/ObjectsCore"; | ||
import { PageType } from "../../../../support/Pages/DebuggerHelper"; | ||
import EditorNavigation, { | ||
EditorViewMode, | ||
} from "../../../../support/Pages/EditorNavigation"; | ||
|
||
describe("Api Error Debugger", { tags: ["@tag.IDE"] }, () => { | ||
before(() => { | ||
// Create api that causes an error | ||
_.apiPage.CreateAndFillApi("https://fakeapi/user"); | ||
}); | ||
it("it shows error message", () => { | ||
_.apiPage.RunAPI(false); | ||
_.debuggerHelper.AssertOpen(PageType.API); | ||
_.apiPage.ResponseStatusCheck("PE-RST-5000"); | ||
}); | ||
it("it shows debug button and navigates", () => { | ||
_.apiPage.DebugError(); | ||
_.debuggerHelper.AssertSelectedTab("Error"); | ||
_.debuggerHelper.AssertErrorCount(1); | ||
EditorNavigation.SwitchScreenMode(EditorViewMode.SplitScreen); | ||
_.apiPage.DebugError(); | ||
_.debuggerHelper.AssertSelectedTab("Error"); | ||
_.debuggerHelper.AssertErrorCount(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Tip
Codebase Verification
The search for the
@tag.IDE
configuration within the Cypress directory did not yield any results. This suggests that the tag might not be configured or recognized by the test suite. Given this, it's important to ensure that the new tag is properly set up to avoid any issues with test execution.@tag.IDE
is added to the test configuration: This tag needs to be defined in the appropriate configuration files to be recognized during test runs. This setup is crucial for the proper categorization and execution of tests.Analysis chain
The change in test categorization tag from
@tag.Debugger
to@tag.IDE
is noted. Ensure this new tag is correctly configured in the test suite to be recognized and executed.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 83
Script:
Length of output: 62
Script:
Length of output: 64