docs: add Java version of Best Practices guide #40580
+404
−0
Open
Annotations
1 error and 1 warning
|
Run node utils/doclint/linting-code-snippets/cli.js
Process completed with exit code 1.
|
|
Run node utils/doclint/linting-code-snippets/cli.js:
docs/src/best-practices-java.md#L0
Error: Parse error. Found "@", expected one of "(" "\"\"\"" "assert" "enum" "exports" "false" "module" "new" "null" "open" "opens" "permits" "provides" "record" "requires" "sealed" "strictfp" "super" "this" "to" "transitive" "true" "uses" "when" "with" "yield" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL>
Unable to lint:
import com.microsoft.playwright.*;
import com.microsoft.playwright.options.AriaRole;
import org.junit.jupiter.api.Test;
import static com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertAll;
@test
void softAssertionsExample() {
// Make a few checks that will not stop the test when failed...
assertAll(
() -> assertThat(page.getByTestId("status")).hasText("Success")
);
// ... and continue the test to check more things.
page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("next page")).click();
}
|
Loading