feat(console): MDC components (#6482)

mdc components

---------

Co-authored-by: Elio Bischof <eliobischof@gmail.com>
This commit is contained in:
Max Peintner
2023-10-26 10:29:06 +02:00
committed by GitHub
parent cb7b50b513
commit b099a26a16
412 changed files with 2711 additions and 2698 deletions

View File

@@ -26,16 +26,17 @@ describe('humans', () => {
});
it('should add a user', () => {
cy.get('[data-e2e="create-user-button"]').click();
cy.get('[data-e2e="create-user-button"]').should('be.visible').click();
cy.url().should('contain', 'users/create');
cy.get('[formcontrolname="email"]').type('dummy@dummy.com');
//force needed due to the prefilled username prefix
cy.get('[formcontrolname="userName"]').type(user.addName);
cy.get('[formcontrolname="firstName"]').type('e2ehumanfirstname');
cy.get('[formcontrolname="lastName"]').type('e2ehumanlastname');
cy.get('mat-select[data-cy="country-calling-code"]').click().get('mat-option').contains('Switzerland').click();
cy.get('mat-select[data-cy="country-calling-code"]').click();
cy.contains('mat-option', 'Switzerland').scrollIntoView().click();
cy.get('[formcontrolname="phone"]').type('123456789');
cy.get('[data-e2e="create-button"]').click();
cy.get('[data-e2e="create-button"]').click({ force: true });
cy.shouldConfirmSuccess();
let loginName = user.addName;
if (user.mustBeDomain) {

View File

@@ -26,7 +26,7 @@ describe('machines', () => {
});
it('should add a machine', () => {
cy.get('[data-e2e="create-user-button"]').click();
cy.get('[data-e2e="create-user-button"]').should('be.visible').click();
cy.url().should('contain', 'users/create-machine');
//force needed due to the prefilled username prefix
cy.get('[formcontrolname="userName"]').type(machine.addName);