Final project#15
Open
Hanarlo wants to merge 18 commits into
Open
Conversation
wildpioneer
requested changes
Mar 31, 2024
|
|
||
| public WebDriver getDriver() { | ||
| if (driver == null){ | ||
| WebDriverManager.chromedriver().driverVersion("123.0.6312.58").setup(); |
Collaborator
There was a problem hiding this comment.
Хотелось бы видеть WebDriverManager без конкретной версии
|
|
||
| @BeforeClass | ||
| public void setUpMethod(){ | ||
| key = System.getProperty("apiKey"); |
Collaborator
There was a problem hiding this comment.
А почему перед каждым тестовым классом? Не достаточно перед всеми тестами?
| return new RequestSpecBuilder() | ||
| .setBaseUri("https://app.testiny.io/api/v1/") | ||
| .setContentType(ContentType.JSON) | ||
| .addHeader("", "4pZB6aUsSUYngWiEopPYvr5bm5aJy55g6gfFHcxEyi7o6E9m") |
Collaborator
There was a problem hiding this comment.
А что это за страшный номер? и почему он захардкожен?
| //DELETE CASE | ||
| private final By testCaseNameLocator = By.xpath("//td//span[contains(text(), 'test')]"); | ||
| private final By buttonMoreLocator = By | ||
| .xpath("//span[contains(text(), 'test')]/../../../td//button[@data-testid='button-more']"); |
Collaborator
There was a problem hiding this comment.
Страшный xpath - переделать используя оси
| new File(Objects.requireNonNull(ProjectSettingsStep.class.getClassLoader().getResource("R.jfif")).toURI()); | ||
| StringSelection str = new StringSelection(file.getAbsolutePath()); | ||
| Toolkit.getDefaultToolkit().getSystemClipboard().setContents(str, null); | ||
| Thread.sleep(1000); |
Collaborator
There was a problem hiding this comment.
sleep???? Без него никак?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.