-
-
Notifications
You must be signed in to change notification settings - Fork 736
Plugin "stepByStepReport" doesn't synchronize screenshots with steps #4405
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
Comments
It seems that CodeceptJS creates a screenshot when adding the scenario steps into a "recorder" and not when executing the steps. |
Looks like broken by #4385 . 3.6.2:
CC: @kobenguyent |
hey @mirao would you mind trying this test version
|
@kobenguyent It doesn't work for me with
And I'm getting only This is with 3.6.4:
|
@mirao sorry, wrong push, please try with this test version |
@kobenguyent It works. Test Feature("StepByStep");
BeforeSuite(({ I }) => {
I.say("Before Suite");
});
Scenario("test something", ({ I }) => {
I.amOnPage("https://codecept.io");
I.fillField("#algolia-search-input", "Step by Step");
I.pressKey("Enter");
I.seeElement("#stepbystepreport");
}); output
|
@mirao one more try with
|
It works well with test: Feature("StepByStep");
BeforeSuite(({ I }) => {
I.say("Before Suite");
});
Scenario("test something", ({ I }) => {
I.amOnPage("https://codecept.io");
I.fillField("#algolia-search-input", "Step by Step");
I.pressKey("Enter");
I.seeElement("#stepbystepreport");
});
AfterSuite(({ I }) => {
I.say("After Suite");
}); output:
|
@mirao let's try with [email protected]. |
@kobenguyent Works well now, thanks. One more issue: When you have two scenarios and the 1st one fails, then the plugin stops creating screenshots for the 2nd scenario and finally test: Feature("StepByStep");
BeforeSuite(({ I }) => {
I.say("Before Suite");
});
Scenario("test something 1", ({ I }) => {
I.amOnPage("https://codecept.io");
I.fillField("#blabla", "Step by Step"); // A typo in element
I.pressKey("Enter");
I.seeElement("#stepbystepreport");
});
Scenario("test something 2", ({ I }) => {
I.amOnPage("https://codecept.io");
I.fillField("#algolia-search-input", "Step by Step");
I.pressKey("Enter");
I.seeElement("#stepbystepreport");
});
AfterSuite(({ I }) => {
I.say("After Suite");
}); output:
|
Well, it seems to be by design. |
@kobenguyent So you can close the task, everything seems to be solved. Thanks. |
@mirao thanks for your testing! |
What are you trying to achieve?
A screenshot should be done after each step in the scenario - there are 4 steps in the scenario, so the screenshot should display a result after each of those 4 steps.
What do you get instead?
All screenshots are done at the very beginning of the test.
E.g. you can't see there filling of the text in the search field or a result of the search query:
record.zip
Details
The text was updated successfully, but these errors were encountered: