Skip to content

Commit 40499a0

Browse files
shawonshawon
authored andcommitted
fix profile settings test
1 parent 6ced7c8 commit 40499a0

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

eform-client/cypress/e2e/Navbar.page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Navbar {
6868
}
6969

7070
public myEformsBtn() {
71-
return cy.get('#my-eforms').should('be.visible').click();
71+
return cy.get('#my-eforms').should('be.visible').click({force: true});
7272
}
7373

7474
public clickOnSubMenuItem(menuItem) {
@@ -107,7 +107,7 @@ export class Navbar {
107107
this.advancedBtn();
108108
}
109109
});
110-
this.applicationSettingsBtn().click();
110+
this.applicationSettingsBtn().click({ force: true });
111111
// Note: Tests should intercept appropriate API calls after navigation
112112
cy.wait(500);
113113
}

eform-client/e2e/Page objects/Navbar.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class Navbar {
277277
}
278278

279279
public async goToMyEForms() {
280-
await (await this.myEformsBtn()).click();
280+
await (await this.myEformsBtn()).click({force: true});
281281
}
282282

283283
public async goToSecurity() {

eform-client/src/app/components/footer/footer.component.scss

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,24 @@ body, .theme-dark {
5656
align-self: stretch;
5757
background: var(--bg);
5858
border-top: 1px solid var(--border, #EBEFF2);
59+
overflow: hidden;
5960
&:hover {
60-
background: var(--primary-light, #F5FCFC);
61-
color: var(--primary, #289694);
61+
background-color: var(--mdc-theme-primary-dark, #00695C) !important;
62+
color: var(--mdc-theme-on-primary) !important;
6263
cursor: pointer;
64+
65+
.info {
66+
.name {
67+
color: var(--mdc-theme-on-primary) !important;
68+
}
69+
.email {
70+
color: var(--mdc-theme-on-primary) !important;
71+
}
72+
}
73+
}
74+
75+
.expand-icon{
76+
color: var(--text-header);
6377
}
6478
}
6579

@@ -72,6 +86,8 @@ body, .theme-dark {
7286
cursor: pointer;
7387
padding: 0;
7488
background: transparent;
89+
width: 100%;
90+
overflow: hidden;
7591

7692
&:hover {
7793
background: transparent;
@@ -170,8 +186,9 @@ a{
170186
line-height: var(--Text-line-height-sm, 22px);
171187

172188
&:hover {
173-
background: var(--primary-light, #F5FCFC);
174-
color: var(--primary, #289694);
189+
background-color: var(--mdc-theme-primary-dark, #00695C) !important;
190+
color: var(--mdc-theme-on-primary) !important;
191+
border-radius: var(--rounded-full, 9999px);
175192
}
176193
}
177194

@@ -185,6 +202,4 @@ a{
185202
border: 1px solid var(--border, #EBEFF2);
186203
background: var(--bg, #FFF);
187204
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
188-
189-
190205
}

eform-client/src/app/components/footer/footer.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {Observable} from "rxjs";
1616
import {map} from "rxjs/operators";
1717
import {snakeToCamel} from "src/app/common/helpers";
1818

19-
2019
@Component({
2120
selector: 'app-footer',
2221
standalone: true,

eform-client/src/app/components/navigation/navigation.component.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ mat-tree {
5858

5959
.mat-expansion-panel-header {
6060
padding-left: 1rem;
61+
&:hover{
62+
background-color: var(--mdc-theme-primary-dark) !important;
63+
color: var(--mdc-theme-on-primary) !important;
64+
border-radius: var(--rounded-full);
65+
a{
66+
span{
67+
color: var(--mdc-theme-on-primary) !important;
68+
}
69+
}
70+
}
6171
}
6272

6373
.mat-expansion-panel-content {

0 commit comments

Comments
 (0)