You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given
Starting with the example repo, adding @retries:0 on a Scenario
Feature: Playwright Home Page
@retries:0
Scenario: Check title
Given I am on Playwright home page
When I click link "Get started"
Then I see in title "Installation"
When
I run bddgen
Then
If I inspect the generated .spec.js file, I don't see any configuration of retries for that scenario:
test.describe("Playwright Home Page", () => {
test(
"Check title",
{ tag: ["@retries:0"] },
async ({ Given, page, When, Then }) => {
await Given("I am on Playwright home page", null, { page });
await When('I click link "Get started"', null, { page });
await Then('I see in title "Installation"', null, { page });
}
);
});
But I expect
An anonymous describe block configured with 0 retries, e.g.:
test.describe('Playwright Home Page', () => {
test.describe(() => {
test.describe.configure({"retries":0});
test('Check title', { tag: ['@retries:0'] }, async ({ Given, page, When, Then }) => {
await Given('I am on Playwright home page', null, { page });
await When('I click link "Get started"', null, { page });
await Then('I see in title "Installation"', null, { page });
});
});
});
Given
Starting with the example repo, adding
@retries:0
on aScenario
When
I run
bddgen
Then
If I inspect the generated
.spec.js
file, I don't see any configuration of retries for that scenario:But I expect
An anonymous
describe
block configured with 0 retries, e.g.:Isolated demo
https://github.com/niss36/playwright-bdd-example
Environment
I think I've tracked the root cause to a bad conditional and will open a PR for it :)
The text was updated successfully, but these errors were encountered: