Skip to content

Commit

Permalink
fix: failing e2e identity test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ankypant committed May 14, 2024
1 parent 45c7aa1 commit e00b5ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { User } from '../../data/data-types/user';
import { BasePage } from './_base-page';
import { User } from '../../data/data-types/user';
import { defaultUser } from '../../data/credentials';

export class IdentityPage extends BasePage {
userName = this.$('#username');
userNameLabel = this.$('label[for="username"]');
password = this.$('#password');
passwordLabel = this.$('label[for="password"]');
errorMessage = this.$('#input-error');
loginButton = this.$('.btn[value="Log in"]');
errorMessage = this.$('div[data-role="login-template__alert"]');
loginButton = this.$('.btn[name="login"]');
loginForm = this.$('.identity-container__panel');

async login(user: User = defaultUser) {
Expand Down
2 changes: 1 addition & 1 deletion apps/golden-sample-app-e2e/specs/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const i18n = {
password: 'Password',
loginButton: 'Log in',
error:
'Incorrect username or passwordPlease check your credentials and try again.',
'Incorrect username or passwordPlease check your details and try again',
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<span class="transactions-item__counterParty"
>{{ transaction.counterPartyName || transaction.merchant?.name }}
<img
*ngIf="iconName"
src="./assets/transactions-journey/{{ iconName }}"
width="20"
height="20"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div data-role="transfer-summary" *ngIf="(transfer$ | async)! as transfer">
you have transfered <strong>{{ transfer?.amount }}</strong> to
you have transferred <strong>{{ transfer?.amount }}</strong> to
<strong>{{ transfer?.toAccount }}</strong>
</div>

Expand Down

0 comments on commit e00b5ea

Please sign in to comment.