-
Notifications
You must be signed in to change notification settings - Fork 64
Custom driver provider tests #102
base: master
Are you sure you want to change the base?
Custom driver provider tests #102
Conversation
Added steps for entering random numbers (alfa-laboratory#60)
fork update
Update fork
Add opposite checking steps part2 (alfa-laboratory#68)
Update BlackListManager.java
Обновление
added description for 'blacklist' (alfa-laboratory#77)
setted latest version of browser by default (alfa-laboratory#76)
Добавлен headless режим для chrome и firefox 🦄 (alfa-laboratory#91)
CustomDriverProvider customDriverProvider = new CustomDriverProvider(); | ||
WebDriver currentDriver; | ||
currentDriver = customDriverProvider.createDriver(new DesiredCapabilities()); | ||
assertThat(currentDriver.getClass().getName(), is("org.openqa.selenium.chrome.ChromeDriver")); | ||
assertThat(currentDriver.manage().window().getSize().getWidth(), is(666)); | ||
assertThat(currentDriver.manage().window().getSize().getHeight(), is(666)); | ||
currentDriver.quit(); | ||
} | ||
|
||
@Ignore | ||
@Test | ||
public void createFirefoxDriverTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тесты с установкой размера окна для разного типа драйверов излишни. механизм установки одинаковый. имеет смысл проверить, что создается именно нужного типа драйвер. но для этого нужно дополнительно добавить поддержку запуска этого драйвера в travis или через контейнеры попробовать реализовать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
установку размеров удалил, travis ковыряю
} | ||
|
||
@Test | ||
public void createNonexistentDriverTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут лучше default термин использовать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправлено
} | ||
|
||
@Test | ||
public void createEmptyDriverTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
если createNonexistentDriverTest пройдет, то этот тоже
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
удалил
Fix/remove debug (alfa-laboratory#116)
…mDriverProvider-tests
No description provided.