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

incorrect screenshot path in report output #2726

Closed
cullophid opened this issue Aug 14, 2018 · 5 comments
Closed

incorrect screenshot path in report output #2726

cullophid opened this issue Aug 14, 2018 · 5 comments
Assignees
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@cullophid
Copy link

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

screenshots linked in the test output assumes the default screenshot pattern

What is the expected behavior?

links should use the pattern set by --screenshot-pattern to link to the correct screenshots

How would you reproduce the current behavior (if this is a bug)?

set a screenshot pattern that is different from the default an run the test using "spec" or "list" reporter

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

Specify your

  • operating system: Ubuntu 16.4
  • testcafe version: 0.21.0
  • node.js version: 8.11.3
@AndreyBelym AndreyBelym added the STATE: Need clarification An issue lacks information for further research. label Aug 14, 2018
@miherlosev miherlosev self-assigned this Aug 14, 2018
@MarinaRukavitsyna
Copy link

@cullophid
Thank you for pointing out to this issue. I have reproduced it based on your description. We need some additional time to research it.

@MarinaRukavitsyna MarinaRukavitsyna added TYPE: bug The described behavior is considered as wrong (bug). and removed STATE: Need clarification An issue lacks information for further research. labels Aug 15, 2018
@MarinaRukavitsyna
Copy link

A command example:

testcafe chrome reportIssue.js -r list -s screenshots -p "${DATE}_${TIME}_$(OS)/${FILE_INDEX}.png"

A test example:

import { Selector } from 'testcafe';

fixture `Getting Started`
    .page `http://devexpress.github.io/testcafe/example`;

test('Select Text wait till timeout', async t => {
  const firstNameInput = Selector('#developer-name');

  await t
    .typeText(firstNameInput, 'Max')
    .selectText(firstNameInput)
    .pressKey('delete')
    .takeScreenshot()
    .typeText(firstNameInput, 'Max 2');
});

@cullophid
Copy link
Author

Thanks :)

@AndreyBelym AndreyBelym modified the milestones: Planned, Sprint #17 Aug 30, 2018
@miherlosev
Copy link
Collaborator

I'm working on this

miherlosev pushed a commit to miherlosev/testcafe that referenced this issue Sep 12, 2018
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
) (DevExpress#2853)

* fix 'incorrect screenshot path in report output ' (close DevExpress#2726)

* fix tests - 1

* fix test

* fix tests 3

* remove globby
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

4 participants