-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package io.qameta.allure; | ||
|
||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static io.qameta.allure.Allure.step; | ||
|
||
@Owner("eroshenkoam") | ||
@Feature("Auth") | ||
@Story("External Auth") | ||
public class AuthTest { | ||
|
||
@Test | ||
@AllureId("10799") | ||
@DisplayName("Авторизация через Одноклассники") | ||
public void testOdnoklassniki() { | ||
step("Открываем главную страницу"); | ||
step("Авторизуемся через Яндекс", () -> { | ||
step("Вводим логин ranadom-user@yandex.ru"); | ||
step("Вводим пароль random-pass"); | ||
step("Нажимаем кнопку Войти"); | ||
}); | ||
step("Проверяем что авторизовались"); | ||
step("Проверяем что данные пользователя обновиилсь из Яндекс", () -> { | ||
step("Expected Result", () -> { | ||
step("Имя = Mr. Random"); | ||
step("Email = random-user@yandex.ru"); | ||
}); | ||
}); | ||
} | ||
|
||
} |