Cypress test. Reset password notification. (#3141)
* Cypress test. Reset password notification. * Add dummy emailmain
parent
9190559396
commit
e00c389991
@ -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…
Reference in New Issue