-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 'master' for 0.27.0 release
- Loading branch information
Showing
444 changed files
with
8,282 additions
and
4,320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
e2e/cypress/integration/pages/account/punchout-create.page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { fillFormField } from '../../framework'; | ||
|
||
declare interface PunchoutUserCreateForm { | ||
login: string; | ||
password: string; | ||
passwordConfirmation: string; | ||
} | ||
|
||
export class PunchoutCreatePage { | ||
readonly tag = 'ish-account-punchout-create-page'; | ||
|
||
private submitButton = () => cy.get('[data-testing-id="create-punchout-user-submit"]'); | ||
|
||
fillForm(content: PunchoutUserCreateForm) { | ||
Object.keys(content) | ||
.filter(key => content[key] !== undefined) | ||
.forEach((key: keyof PunchoutUserCreateForm) => { | ||
fillFormField(this.tag, key, content[key]); | ||
}); | ||
|
||
return this; | ||
} | ||
|
||
submit() { | ||
this.submitButton().click(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
e2e/cypress/integration/pages/account/punchout-edit.page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { waitLoadingEnd } from '../../framework'; | ||
|
||
export class PunchoutEditPage { | ||
readonly tag = 'ish-account-punchout-details-page'; | ||
|
||
private submitButton = () => cy.get('[data-testing-id="update-punchout-user-submit"]'); | ||
|
||
editActiveFlag(active: boolean) { | ||
cy.get('[data-testing-id="active"]').uncheck(); | ||
if (active) { | ||
cy.get('[data-testing-id="active"]').check(); | ||
} | ||
} | ||
|
||
submit() { | ||
this.submitButton().click(); | ||
waitLoadingEnd(1000); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
e2e/cypress/integration/pages/account/punchout-overview.page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { waitLoadingEnd } from '../../framework'; | ||
import { BreadcrumbModule } from '../breadcrumb.module'; | ||
import { HeaderModule } from '../header.module'; | ||
|
||
export class PunchoutOverviewPage { | ||
readonly tag = 'ish-account-punchout-page'; | ||
|
||
readonly header = new HeaderModule(); | ||
readonly breadcrumb = new BreadcrumbModule(); | ||
|
||
get userList() { | ||
return cy.get('div[data-testing-id="user-list"]'); | ||
} | ||
|
||
get emptyList() { | ||
return cy.get(this.tag).find('[data-testing-id="empty-user-list"]'); | ||
} | ||
|
||
get successMessage() { | ||
return { | ||
message: cy.get('#toast-container').find('.toast-message'), | ||
}; | ||
} | ||
|
||
addUser() { | ||
cy.get('button[data-testing-id="add-user-button"]').click(); | ||
} | ||
|
||
editUser(login: string) { | ||
cy.get(this.tag).contains('div.list-item-row', login).find('[data-testing-id="edit-user"]').click(); | ||
} | ||
|
||
deleteUser(login: string) { | ||
cy.get(this.tag).contains('div.list-item-row', login).find('[data-testing-id="delete-user"]').click(); | ||
cy.get('[data-testing-id="confirm"]', { timeout: 2000 }).click(); | ||
waitLoadingEnd(2000); | ||
} | ||
} |
Oops, something went wrong.