Skip to content

Commit

Permalink
Cypress test. Reset password notification. (#3141)
Browse files Browse the repository at this point in the history
* Cypress test. Reset password notification.

* Add dummy email
  • Loading branch information
dvkruchinin authored Apr 30, 2021
1 parent 9190559 commit e00c389
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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');
});
});
});

0 comments on commit e00c389

Please sign in to comment.