Skip to content

Commit fe5cbbb

Browse files
Add test for to check if all errors are expanded
- Add some placeholder tests
1 parent b1b7ff1 commit fe5cbbb

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Debugger/Logs_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ describe("Debugger logs", function() {
2727
cy.contains(debuggerLocators.debuggerIcon, 0);
2828
});
2929
});
30+
31+
it("Api headers need to be shown as headers in logs", function() {
32+
// TODO
33+
});
34+
35+
it("Api body needs to be shown as JSON when possible", function() {
36+
// TODO
37+
});
3038
});

app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Debugger/Widget_Error_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,12 @@ describe("Widget error state", function() {
2222

2323
cy.get(debuggerLocators.debuggerLogState).contains("Test");
2424
});
25+
26+
it("All errors should be expanded by default", function() {
27+
cy.testJsontext("label", "{{[]}}");
28+
29+
cy.get(".t--debugger-message")
30+
.should("be.visible")
31+
.should("have.length", 2);
32+
});
2533
});

app/client/src/components/editorComponents/Debugger/LogItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function LogItem(props: LogItemProps) {
290290
return (
291291
<MessageWrapper key={e.message}>
292292
<span
293-
className="debugger-message"
293+
className="debugger-message t--debugger-message"
294294
onClick={(event) => onLogClick(event, e)}
295295
>
296296
{e.message}

0 commit comments

Comments
 (0)