-
Notifications
You must be signed in to change notification settings - Fork 41
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
base: main
Are you sure you want to change the base?
Колосов Денис #34
Conversation
// используйте beforeEach хук для вызова account.auth(), | ||
// если вы тестируете НЕ авторизацию | ||
beforeEach(() => { | ||
// account.auth() DOESNT WORK! element ("[data-test-id=login-app-read]") still not visible after 10000ms |
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.
удали комменты с кодом и лучше еще комменты с инструкциями преподавателя тоже убрать
it("create new folder", () => { | ||
cloud.open('https://cloud.mail.ru/'); | ||
cloud.createDirectory(); | ||
assert.strictEqual(cloud.checkCreatedFolderExists(), true); |
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.
Добавь 3 аргументом сообщение при ошибке
// используйте beforeEach хук для вызова account.auth(), | ||
// если вы тестируете НЕ авторизацию | ||
beforeEach(() => { | ||
// account.auth() DOESNT WORK! element ("[data-test-id=login-app-read]") still not visible after 10000ms |
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.
тоже удалить лучше
cloud.open('https://cloud.mail.ru/'); | ||
cloud.moveFile(); | ||
cloud.open(`https://cloud.mail.ru/home/${process.env.MOVE_FOLDER}`); | ||
assert.strictEqual(cloud.checkFileMoved(), true); |
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.
3 аргументом сообщение при ошибке
pages/home/index.js
Outdated
|
||
class HomePage extends DefaultPage { | ||
constructor() { | ||
super('account', '[data-test-id=login-app-read]') |
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.
2 аргументом селектор контейнера страницы/блока
pages/home/index.js
Outdated
} | ||
|
||
|
||
|
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.
я бы убрал лишние пустые строки
No description provided.