Cypress test. Reset password notification. (#3141)

* Cypress test. Reset password notification.

* Add dummy email
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent 9190559396
commit e00c389991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,26 @@
// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
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');
});
});
});
Loading…
Cancel
Save