Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.14.2
# 0.14.3
- fixed width and height of error and logs overlay

# 0.14.1
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qavajs/html-formatter",
"version": "0.14.2",
"version": "0.14.3",
"main": "formatter/formatter.js",
"scripts": {
"report:compile": "node test/compile_report.js",
Expand Down
4 changes: 2 additions & 2 deletions src/components/ErrorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
export const ErrorModal = (modalProps: any) => {
return <>
<ModalBlocker blockerShadow='dark' {...modalProps}>
<ModalWindow style={{width: '90vw', margin: 'auto', height: '60vh'}}>
<ModalWindow style={{width: '90vw', margin: 'auto'}}>
<Panel background="white">
<ModalHeader title="Error" onClose={() => modalProps.success('close')}/>
<FlexRow padding='24'>
<pre style={{width: '100%', overflow: 'auto'}}>
<pre style={{width: '100%', overflow: 'auto', height: '60vh'}}>
{modalProps.error}
</pre>
</FlexRow>
Expand Down
4 changes: 2 additions & 2 deletions src/components/LogsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
export const LogsModal = (modalProps: any) => {
return <>
<ModalBlocker blockerShadow='dark' {...modalProps}>
<ModalWindow style={{width: '90vw', margin: 'auto', height: '60vh'}}>
<ModalWindow style={{width: '90vw', margin: 'auto'}}>
<Panel background="white">
<ModalHeader title="Logs" onClose={() => modalProps.success('close')}/>
<FlexRow padding='24'>
<pre style={{width: '100%', overflow: 'auto'}}>
<pre style={{width: '100%', overflow: 'auto', height: '60vh'}}>
{modalProps.logs.map((log: any, index: number) => <div key={index}>{log.data}</div>)}
</pre>
</FlexRow>
Expand Down
3 changes: 3 additions & 0 deletions test/features/Logs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Feature: Logs

Scenario: scenario dollar replace
And I expect 'some string' to match '^120$'

Scenario: scenario passed with huge log
When passed step with huge log
8 changes: 7 additions & 1 deletion test/step_definitions/custom_steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,15 @@ When('unsupported base64 attachment', function () {

When('passed step with log', function () {
this.log('some information in passed step');
this.log('one more log line')
this.log('one more log line');
});

When('passed step with huge log', function () {
for (let i = 0; i < 100; i++) {
this.log('one more log line '.repeat(100));
}
});

When('failed step with log', function () {
this.log('some information in failed step');
this.log('ER: expected result');
Expand Down