mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-15 12:03:04 +00:00
fix some tests
This commit is contained in:
@@ -12,7 +12,7 @@ describe('humans', () => {
|
||||
beforeEach(() => {
|
||||
login(user);
|
||||
cy.visit(humansPath);
|
||||
cy.get('[data-cy=timestamp]');
|
||||
cy.get('[data-e2e=timestamp]');
|
||||
});
|
||||
|
||||
describe('add', () => {
|
||||
@@ -23,7 +23,7 @@ describe('humans', () => {
|
||||
});
|
||||
|
||||
it('should add a user', () => {
|
||||
cy.get('a[href="/users/create"]').click();
|
||||
cy.get('[data-e2e="create-user-button"]').click();
|
||||
cy.url().should('contain', 'users/create');
|
||||
cy.get('[formcontrolname="email"]').type(username('e2ehuman'));
|
||||
//force needed due to the prefilled username prefix
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('machines', () => {
|
||||
beforeEach(() => {
|
||||
login(user);
|
||||
cy.visit(machinesPath);
|
||||
cy.get('[data-cy=timestamp]');
|
||||
cy.get('[data-e2e=timestamp]');
|
||||
});
|
||||
|
||||
describe('add', () => {
|
||||
@@ -23,7 +23,7 @@ describe('machines', () => {
|
||||
});
|
||||
|
||||
it('should add a machine', () => {
|
||||
cy.get('a[href="/users/create-machine"]').click();
|
||||
cy.get('[data-e2e="create-user-button"]').click();
|
||||
cy.url().should('contain', 'users/create-machine');
|
||||
//force needed due to the prefilled username prefix
|
||||
cy.get('[formcontrolname="userName"]').type(testMachineUserNameAdd, { force: true });
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('permissions', () => {
|
||||
api = apiCalls
|
||||
ensureProjectExists(apiCalls, testProjectName).then(projId => {
|
||||
projectId = projId
|
||||
cy.visit(`${Cypress.env('baseUrl')}/ui/console/projects/${projId}`)
|
||||
cy.visit(`${Cypress.env('baseUrl')}/ui/console/projects/${projId}?id=roles`)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -42,10 +42,10 @@ describe('projects', () => {
|
||||
|
||||
it('removes the project', () => {
|
||||
cy.get('[data-e2e=toggle-grid]').click();
|
||||
cy.get('[data-cy=timestamp]');
|
||||
cy.get('[data-e2e=timestamp]');
|
||||
cy.contains('tr', testProjectNameDeleteList, { timeout: 1000 })
|
||||
.find('[data-e2e=delete-project-button]')
|
||||
.click({ force: true });
|
||||
.find('[data-e2e=table-actions-button]')
|
||||
.click({force: true});
|
||||
cy.get('[e2e-data="confirm-dialog-button"]').click();
|
||||
cy.get('.data-e2e-success');
|
||||
cy.wait(200);
|
||||
@@ -66,6 +66,7 @@ describe('projects', () => {
|
||||
.find('[data-e2e=delete-project-button]')
|
||||
.trigger('mouseover')
|
||||
.click();
|
||||
cy.get('[e2e-data="confirm-dialog-input"]').type(testProjectNameDeleteGrid);
|
||||
cy.get('[e2e-data="confirm-dialog-button"]').click();
|
||||
cy.get('.data-e2e-success');
|
||||
cy.wait(200);
|
||||
|
||||
Reference in New Issue
Block a user