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
10 changes: 9 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# 0.0.3
- fixed image fit
- fixed tags fit in title

# 0.0.2
- added feature titles
- minor fixes

# 0.0.1
initial implementation
- initial implementation
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.0.2",
"version": "0.0.3",
"main": "formatter/formatter.js",
"dependencies": {
},
Expand Down
7 changes: 7 additions & 0 deletions src/App.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ footer {

.tagBadge {
margin-right: 5px;
margin-top: 3px;
margin-bottom: 3px;
}

.searchInput {
Expand Down Expand Up @@ -87,3 +89,8 @@ footer {
font-size: 28px;
}

.scenarioTitle {
display: flex;
flex-wrap: wrap;
width: 95%;
}
2 changes: 1 addition & 1 deletion src/components/AttachmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Attachment = (props: any) => {
return <img
src={`data:${props.embedding.mime_type};base64,${props.embedding.data}`}
alt='attachment'
style={{width: '100vw'}}
style={{width: '100%'}}
/>
}
if (props.embedding.mime_type === 'text/plain') {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Scenario.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import {FlexRow, Text, Badge, FlexCell, Accordion} from '@epam/promo';
import {Step} from './Step';
import css from "../App.module.scss";
import { FlexRow, Text, Badge, FlexCell, Accordion } from '@epam/promo';
import { Step } from './Step';
import css from '../App.module.scss';

const filterByStatus = (scenario: any, status: string) => scenario.steps.filter((step: any) => step.result.status === status);
const scenarioTitle = (scenario: any) => () => {
Expand All @@ -12,7 +12,7 @@ const scenarioTitle = (scenario: any) => () => {
const ambiguous = filterByStatus(scenario, 'ambiguous').length;
const pending = filterByStatus(scenario, 'pending').length;

return <FlexRow spacing='12' padding="6">
return <FlexRow spacing='12' padding='6' vPadding='12' cx={css.scenarioTitle}>
<Text fontSize='16' font='sans-semibold'>Scenario: {scenario.name}</Text>
{passed > 0 && <Badge color='green' fill='semitransparent' caption={passed}/>}
{failed > 0 && <Badge color='red' fill='semitransparent' caption={failed}/>}
Expand Down
1 change: 1 addition & 0 deletions test/attachments/pngFullSizeBase64.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions test/features/Attachment.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ Feature: Attachments

Scenario: png base64
When png base64 attachment

Scenario: png full-size base64
When png full-size base64 attachment
6 changes: 6 additions & 0 deletions test/features/Feature1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ Feature: Feature1
Scenario: scenario pending
When passed step
And pending step

@there @is @too @many @tags @first_tag @second_tag @third_tag
@fourth_tag @fifth_tag @and_so_on @etc
@more_words @that @not @fit @to @the @scenario @title @panel
Scenario: too many tags scenario that does not fit to the title
When passed step
4 changes: 4 additions & 0 deletions test/step_definitions/custom_steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ When('text attachment', function () {
When('png base64 attachment', function () {
this.attach(require('../attachments/pngBase64'), 'base64:image/png')
});

When('png full-size base64 attachment', function () {
this.attach(require('../attachments/pngFullSizeBase64'), 'base64:image/png')
});