|
|
|
@ -5,6 +5,12 @@
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
|
|
|
|
|
|
|
context('Issue 1599 (Chinese alphabet).', () => {
|
|
|
|
context('Issue 1599 (Chinese alphabet).', () => {
|
|
|
|
|
|
|
|
const firstName = '测试者';
|
|
|
|
|
|
|
|
const lastName = '测试';
|
|
|
|
|
|
|
|
const userName = 'Testuser_ch';
|
|
|
|
|
|
|
|
const email = 'Testuser_ch@local.local';
|
|
|
|
|
|
|
|
const password = 'Qwerty123!';
|
|
|
|
|
|
|
|
|
|
|
|
before(() => {
|
|
|
|
before(() => {
|
|
|
|
cy.visit('auth/register');
|
|
|
|
cy.visit('auth/register');
|
|
|
|
cy.url().should('include', '/auth/register');
|
|
|
|
cy.url().should('include', '/auth/register');
|
|
|
|
@ -12,33 +18,32 @@ context('Issue 1599 (Chinese alphabet).', () => {
|
|
|
|
|
|
|
|
|
|
|
|
describe('User registration using the Chinese alphabet.', () => {
|
|
|
|
describe('User registration using the Chinese alphabet.', () => {
|
|
|
|
it('Filling in the placeholder "First name"', () => {
|
|
|
|
it('Filling in the placeholder "First name"', () => {
|
|
|
|
cy.get('[placeholder="First name"]').type('测试者').should('not.have.class', 'has-error');
|
|
|
|
cy.get('[placeholder="First name"]').type(firstName).should('not.have.class', 'has-error');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Filling in the placeholder "Last name"', () => {
|
|
|
|
it('Filling in the placeholder "Last name"', () => {
|
|
|
|
cy.get('[placeholder="Last name"]').type('测试').should('not.have.class', 'has-error');
|
|
|
|
cy.get('[placeholder="Last name"]').type(lastName).should('not.have.class', 'has-error');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Filling in the placeholder "Username"', () => {
|
|
|
|
it('Filling in the placeholder "Username"', () => {
|
|
|
|
cy.get('[placeholder="Username"]').type('Testuser_ch');
|
|
|
|
cy.get('[placeholder="Username"]').type(userName);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Filling in the placeholder "Email address"', () => {
|
|
|
|
it('Filling in the placeholder "Email address"', () => {
|
|
|
|
cy.get('[placeholder="Email address"]').type('Testuser_ch@local.local');
|
|
|
|
cy.get('[placeholder="Email address"]').type(email);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Filling in the placeholder "Password"', () => {
|
|
|
|
it('Filling in the placeholder "Password"', () => {
|
|
|
|
cy.get('[placeholder="Password"]').type('Qwerty123!');
|
|
|
|
cy.get('[placeholder="Password"]').type(password);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Filling in the placeholder "Confirm password"', () => {
|
|
|
|
it('Filling in the placeholder "Confirm password"', () => {
|
|
|
|
cy.get('[placeholder="Confirm password"]').type('Qwerty123!');
|
|
|
|
cy.get('[placeholder="Confirm password"]').type(password);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Click to "Submit" button', () => {
|
|
|
|
it('Click to "Submit" button', () => {
|
|
|
|
cy.get('[type="submit"]').click();
|
|
|
|
cy.get('[type="submit"]').click();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('Successful registration', () => {
|
|
|
|
it('Successful registration', () => {
|
|
|
|
cy.url().should('include', '/tasks');
|
|
|
|
cy.url().should('include', '/tasks');
|
|
|
|
});
|
|
|
|
});
|