-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C409495: Filters section: Users filter (Firebird) (TaaS) #2416
base: master
Are you sure you want to change the base?
Changes from all commits
55c0e43
0cae6cf
de0870f
36e46cd
62f9b0e
e84945b
36197fa
06659c0
1ac4ad2
a9c0f27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import permissions from '../../../support/dictionary/permissions'; | ||
import TopMenu from '../../../support/fragments/topMenu'; | ||
import BulkEditSearchPane from '../../../support/fragments/bulk-edit/bulk-edit-search-pane'; | ||
import users from '../../../support/fragments/users/users'; | ||
|
||
let user; | ||
describe('bulk-edit', () => { | ||
before('create test users', () => { | ||
cy.createTempUser([ | ||
permissions.bulkEditLogsView.gui, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Permissions There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what need to be done here? I gave required permissions as per testcase. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just code convension Premissions |
||
permissions.bulkEditCsvView.gui, | ||
permissions.bulkEditView.gui, | ||
]).then((userProperties) => { | ||
user = userProperties; | ||
cy.login(user.username, user.password, { | ||
path: TopMenu.bulkEditPath, | ||
waiter: BulkEditSearchPane.waitLoading, | ||
}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missed precondtion from TC |
||
}); | ||
}); | ||
|
||
after('delete test data', () => { | ||
cy.getAdminToken(); | ||
users.deleteViaApi(user.userId); | ||
}); | ||
|
||
it('Filters section: Users filter', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, add TC id, tags and names for dev teams. See other tests |
||
BulkEditSearchPane.openLogsSearch(); | ||
BulkEditSearchPane.verifyLogsPane(); | ||
BulkEditSearchPane.checkHoldingsCheckbox(); | ||
BulkEditSearchPane.checkItemsCheckbox(); | ||
BulkEditSearchPane.checkUsersCheckbox(); | ||
BulkEditSearchPane.verifyLogsTableHeaders(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missed some expected results from Step2 |
||
BulkEditSearchPane.clickUserAccordion(); | ||
BulkEditSearchPane.clickChooseUserUnderUserAccordion(); | ||
BulkEditSearchPane.searchAndSelectUser('Test_All'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the user 'Test_All'? |
||
BulkEditSearchPane.xAppearsNextToUser(); | ||
BulkEditSearchPane.resetAllBtnIsDisabled(false); | ||
BulkEditSearchPane.clickOnXAppearsNextToUser(); | ||
BulkEditSearchPane.clickChooseUserUnderUserAccordion(); | ||
BulkEditSearchPane.searchUser('AJDKSF'); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,14 @@ import { | |
MultiColumnListRow, | ||
TextField, | ||
Image, | ||
SelectionList, | ||
IconButton, | ||
} from '../../../../interactors'; | ||
import { ListRow } from '../../../../interactors/multi-column-list'; | ||
|
||
const bulkEditIcon = Image({ alt: 'View and manage bulk edit' }); | ||
const logsStartDateAccordion = Accordion('Started'); | ||
const logsUsersAccordion = Accordion('User'); | ||
const logsEndDateAccordion = Accordion('Ended'); | ||
const applyBtn = Button('Apply'); | ||
const logsResultPane = Pane({ id: 'bulk-edit-logs-pane' }); | ||
|
@@ -47,6 +50,8 @@ const logsStatusesAccordion = Accordion('Statuses'); | |
const saveAndClose = Button('Save and close'); | ||
const textFildTo = TextField('To'); | ||
const textFildFrom = TextField('From'); | ||
const buttonChooseUser = Button('Select control\nChoose user'); | ||
const xIconButtonUser = IconButton('Clear selected filters for "[object Object]"'); | ||
const confirmChanges = Button('Confirm changes'); | ||
const triggerBtn = DropdownMenu().find(Button('File that was used to trigger the bulk edit')); | ||
const errorsEncounteredBtn = DropdownMenu().find( | ||
|
@@ -82,6 +87,14 @@ export default { | |
cy.expect(searchButton.has({ disabled: isDisabled })); | ||
}, | ||
|
||
xAppearsNextToUser() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. verifyUserAccordionHasXIcon() { |
||
cy.expect(xIconButtonUser.exists()); | ||
}, | ||
|
||
clickOnXAppearsNextToUser() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clearUserAccordion() { |
||
cy.get('[icon="times-circle-solid"]').eq(1).click(); | ||
}, | ||
|
||
resetAllBtnIsDisabled(isDisabled) { | ||
cy.expect(resetAllButton.has({ disabled: isDisabled })); | ||
}, | ||
|
@@ -917,6 +930,24 @@ export default { | |
]); | ||
}, | ||
|
||
clickUserAccordion() { | ||
cy.do(logsUsersAccordion.clickHeader()); | ||
}, | ||
|
||
clickChooseUserUnderUserAccordion() { | ||
cy.do(logsUsersAccordion.find(buttonChooseUser).click()); | ||
}, | ||
|
||
searchUser(name) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. verifyUserIsNotInUserList() { |
||
SelectionList().filter(name); | ||
cy.get('[placeholder="Filter options list"]').type(name); | ||
cy.contains('List is empty').should('be.visible'); | ||
cy.contains('No matching option').should('be.visible'); | ||
}, | ||
searchAndSelectUser(name) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
clickChooseUserUnderUserAccordion is redundant |
||
cy.do([SelectionList().filter(name), SelectionList().select(including(name))]); | ||
}, | ||
|
||
fillLogsEndDate(fromDate, toDate) { | ||
cy.do([ | ||
logsEndDateAccordion.clickHeader(), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move file to bulk-edit/logs
bulk-edit-filter-section-user-filter-page.cy.js