diff --git a/tests/cypress/integration/actions_users/case_73_reset_password_notification.js b/tests/cypress/integration/actions_users/case_73_reset_password_notification.js new file mode 100644 index 000000000000..e44c7352e87f --- /dev/null +++ b/tests/cypress/integration/actions_users/case_73_reset_password_notification.js @@ -0,0 +1,26 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +context('Reset password notification.', () => { + const caseId = '73'; + const dummyEmail = 'admin@local.local' + + before(() => { + cy.visit('auth/login'); + }); + + describe(`Testing case "${caseId}"`, () => { + it('"Forgot password?" link available.', () => { + cy.get('a[href="/auth/password/reset"]').should('exist').and('be.visible').click(); + }); + + it('Sending a password reset request', () => { + cy.get('#email').type(dummyEmail); + cy.get('.cvat-reset-password-form-button').click(); + cy.contains('Check your email').should('be.visible'); + }); + }); +});