Skip to content

Commit 11d7c70

Browse files
committed
feat: fix e2e
1 parent d4bd7a5 commit 11d7c70

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

cypress/e2e/collection-create.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ beforeEach(() => {
55

66
it('should show loading component while saving', () => {
77
const title = 'Test Collection Title';
8-
cy.get('#title').type(title);
8+
cy.get('#title-en').type(title);
99

10-
cy.get('button[type="submit"]').click();
10+
cy.get('button[type="button"].btn-primary').click();
1111

1212
cy.get('ds-loading').should('be.visible');
1313
});

cypress/e2e/community-create.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ beforeEach(() => {
55

66
it('should show loading component while saving', () => {
77
const title = 'Test Community Title';
8-
cy.get('#title').type(title);
8+
cy.get('#title-en').type(title);
99

10-
cy.get('button[type="submit"]').click();
10+
cy.get('button[type="button"].btn-primary').click();
1111

1212
cy.get('ds-loading').should('be.visible');
1313
});

src/app/shared/comcol/comcol-forms/comcol-form/comcol-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<hr class="my-12 mt-0"/>
8080

8181
<div class="row m-0">
82-
<div class="col-12 d-flex justify-content-center space-children-mr">
82+
<div class="col-12 d-flex justify-content-center space-children-mr form-submit">
8383
<button (click)="back.emit()" class="btn btn-outline-secondary" type="button">
8484
<i class="fas fa-arrow-left" aria-hidden="true"></i> {{ type.value + '.edit.return' | translate }}
8585
</button>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.form-control {
22
margin-top: 2px;
33
}
4+
5+
.form-submit {
6+
gap: 20px;
7+
}

0 commit comments

Comments
 (0)