cicd: disable user creation tests
This commit is contained in:
parent
0ff90bac5a
commit
4b72ef8f69
@ -1,54 +1,56 @@
|
|||||||
/// <reference types="Cypress" />
|
/// <reference types="Cypress" />
|
||||||
/* globals cy, expect */
|
/* globals cy, expect */
|
||||||
|
|
||||||
context('Create User Browser Testing', () => {
|
// Unable to create an user without a community. Unable to create community from app
|
||||||
let firstName = 'First ',
|
|
||||||
lastName = 'Last ',
|
// context('Create User Browser Testing', () => {
|
||||||
username = 'testuser_creation_',
|
// let firstName = 'First ',
|
||||||
email = '';
|
// lastName = 'Last ',
|
||||||
before(() => {
|
// username = 'testuser_creation_',
|
||||||
cy.randomNum().then(num => {
|
// email = '';
|
||||||
firstName += num;
|
// before(() => {
|
||||||
lastName += num;
|
// cy.randomNum().then(num => {
|
||||||
username += num;
|
// firstName += num;
|
||||||
email = username + '@testemail.com';
|
// lastName += num;
|
||||||
});
|
// username += num;
|
||||||
cy.clearLocalStorageSnapshot();
|
// email = username + '@testemail.com';
|
||||||
cy.clearLocalStorage({ domain: null });
|
// });
|
||||||
cy.clearCookies({ domain: null });
|
// cy.clearLocalStorageSnapshot();
|
||||||
});
|
// cy.clearLocalStorage({ domain: null });
|
||||||
beforeEach(() => cy.restoreLocalStorage());
|
// cy.clearCookies({ domain: null });
|
||||||
afterEach(() => cy.saveLocalStorage());
|
// });
|
||||||
it('should visit user login screen', () => cy.userLogin());
|
// beforeEach(() => cy.restoreLocalStorage());
|
||||||
it('should login', () => cy.login());
|
// afterEach(() => cy.saveLocalStorage());
|
||||||
describe('User Creation process', () => {
|
// it('should visit user login screen', () => cy.userLogin());
|
||||||
it('should visit the user creation screen', () => {
|
// it('should login', () => cy.login());
|
||||||
cy.visit('/admin/admin-users/admin-users-create');
|
// describe('User Creation process', () => {
|
||||||
cy.location().should((loc) => {
|
// it('should visit the user creation screen', () => {
|
||||||
expect(loc.pathname).to.eq('/admin/admin-users/admin-users-create');
|
// cy.visit('/admin/admin-users/admin-users-create');
|
||||||
});
|
// cy.location().should((loc) => {
|
||||||
});
|
// expect(loc.pathname).to.eq('/admin/admin-users/admin-users-create');
|
||||||
it('should enter correct user data', () => {
|
// });
|
||||||
cy.get('#admin-users-create input[name="first_name"]').clear().type(firstName);
|
// });
|
||||||
cy.get('#admin-users-create input[name="first_name"]').should('have.value', firstName);
|
// it('should enter correct user data', () => {
|
||||||
cy.get('#admin-users-create input[name="last_name"]').clear().type(lastName);
|
// cy.get('#admin-users-create input[name="first_name"]').clear().type(firstName);
|
||||||
cy.get('#admin-users-create input[name="last_name"]').should('have.value', lastName);
|
// cy.get('#admin-users-create input[name="first_name"]').should('have.value', firstName);
|
||||||
cy.get('#admin-users-create input[name="username"]').clear().type(username);
|
// cy.get('#admin-users-create input[name="last_name"]').clear().type(lastName);
|
||||||
cy.get('#admin-users-create input[name="username"]').should('have.value', username);
|
// cy.get('#admin-users-create input[name="last_name"]').should('have.value', lastName);
|
||||||
cy.get('#admin-users-create input[name="email"]').clear().type(email);
|
// cy.get('#admin-users-create input[name="username"]').clear().type(username);
|
||||||
cy.get('#admin-users-create input[name="email"]').should('have.value', email);
|
// cy.get('#admin-users-create input[name="username"]').should('have.value', username);
|
||||||
});
|
// cy.get('#admin-users-create input[name="email"]').clear().type(email);
|
||||||
it('should click on create user button', () => {
|
// cy.get('#admin-users-create input[name="email"]').should('have.value', email);
|
||||||
cy.get('#admin-users-create input[type="submit"]').click();
|
// });
|
||||||
});
|
// it('should click on create user button', () => {
|
||||||
it('should land on users list screen', () => {
|
// cy.get('#admin-users-create input[type="submit"]').click();
|
||||||
cy.location().should((loc) => {
|
// });
|
||||||
expect(loc.pathname).to.eq('/admin/admin-users');
|
// it('should land on users list screen', () => {
|
||||||
});
|
// cy.location().should((loc) => {
|
||||||
});
|
// expect(loc.pathname).to.eq('/admin/admin-users');
|
||||||
it('should land newly created user on users list screen', () => {
|
// });
|
||||||
cy.contains('solid-display-value[name="name"]', firstName + ' ' + lastName).should("exist");
|
// });
|
||||||
cy.contains('solid-display-value[name="username"]', username).should("exist");
|
// it('should land newly created user on users list screen', () => {
|
||||||
});
|
// cy.contains('solid-display-value[name="name"]', firstName + ' ' + lastName).should("exist");
|
||||||
});
|
// cy.contains('solid-display-value[name="username"]', username).should("exist");
|
||||||
});
|
// });
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
Loading…
Reference in New Issue
Block a user