Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Колосов Денис #34

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Колосов Денис #34

wants to merge 3 commits into from

Conversation

lev4rT
Copy link

@lev4rT lev4rT commented Oct 21, 2021

No description provided.

// используйте beforeEach хук для вызова account.auth(),
// если вы тестируете НЕ авторизацию
beforeEach(() => {
// account.auth() DOESNT WORK! element ("[data-test-id=login-app-read]") still not visible after 10000ms

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

удали комменты с кодом и лучше еще комменты с инструкциями преподавателя тоже убрать

it("create new folder", () => {
cloud.open('https://cloud.mail.ru/');
cloud.createDirectory();
assert.strictEqual(cloud.checkCreatedFolderExists(), true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавь 3 аргументом сообщение при ошибке

// используйте beforeEach хук для вызова account.auth(),
// если вы тестируете НЕ авторизацию
beforeEach(() => {
// account.auth() DOESNT WORK! element ("[data-test-id=login-app-read]") still not visible after 10000ms

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже удалить лучше

cloud.open('https://cloud.mail.ru/');
cloud.moveFile();
cloud.open(`https://cloud.mail.ru/home/${process.env.MOVE_FOLDER}`);
assert.strictEqual(cloud.checkFileMoved(), true);
Copy link

@pekanboy pekanboy Oct 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 аргументом сообщение при ошибке


class HomePage extends DefaultPage {
constructor() {
super('account', '[data-test-id=login-app-read]')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 аргументом селектор контейнера страницы/блока

}



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы убрал лишние пустые строки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants