Skip to content
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

attach block shifted in YaBro #725

Closed
ljql opened this issue Jan 17, 2018 · 1 comment
Closed

attach block shifted in YaBro #725

ljql opened this issue Jan 17, 2018 · 1 comment
Labels
good first issue Good for newcomers theme:ui type:bug Something isn't working

Comments

@ljql
Copy link

ljql commented Jan 17, 2018

$ allure --version
2.4.1

browser: YaBro=17.10.0.2052 (64-bit)

case:

  1. Run pytest with allure (test code below):
    pytest --alluredir=allure mytest.py
  2. Generate report:
    allure generate allure/
  3. Start http-server to open report in YaBro\Chrome:
    http-server allure-report/
  4. Open test SUITES and expand the step with attach
    Expect: block with class="attachment-row" is in correct place
    Acltual: block is upper

Screens: https://yadi.sk/d/plkW7ehE3RXMpC
There are 3 screens: for YaBro, for Chrome=63 and FF=57

Python code

import pytest
import allure
import json

def attach(_name: str, _dict: dict):
    allure.attach(json.dumps(_dict, indent=4, sort_keys=True), _name)

@allure.step("{0}")
def attach_me(step_name, attach_name, dict):
    attach(attach_name, dict)

def test_test():
    dict = {"key1": "value1",
            "key2": "value2",
            "key3": "value3"}
    attach_me("Attach me", "ATTACH", dict)

http-server was installed via
npm install http-server -g

@baev
Copy link
Member

baev commented Jan 17, 2018

Yandex

yabro_allure_attach

Firefox

ff_allure_attach

Chrome

chrome_allure_attach

@baev baev added type:bug Something isn't working work:backlog theme:ui good first issue Good for newcomers labels Jan 17, 2018
@baev baev closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers theme:ui type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants