-
Couldn't load subscription status.
- Fork 411
E2e/feature/ri 4069 client list #1675
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
E2e/feature/ri 4069 client list #1675
Conversation
| /* | ||
| Verify after client list command columns are visible | ||
| */ | ||
| async verifyClientListColumnsAreVisible(): Promise<void> { |
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.
I think it is better to test it with loop and some dynamic selector.
e.g.
const columns = ['id', 'addr', 'name', 'user'];
for (const column of columns) {
let columnSelector = Selector([data-test-subj^=tableHeaderCell_${column}_]);
await t.expect(columnSelector.visible).ok(${column} column is not visible);
}
does it make sense?
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.
so you will be able to test any number of columns described in "columns" array
|
|
||
| test.before(async t => { | ||
| await acceptLicenseTermsAndAddDatabaseApi(ossStandaloneRedisearch, ossStandaloneRedisearch.databaseName); | ||
| // Add index and data |
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.
wrong comment
| }).after(async t => { | ||
| await t.switchToMainWindow(); | ||
| await deleteStandaloneDatabaseApi(ossStandaloneRedisearch); | ||
| })('verify client list plugin shows table', async t => { |
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.
I don't see this test name in checklist
you need to add it to Scenario column
| await t.switchToIframe(workbenchPage.iframe); | ||
| // Verify that I can see the client List visualization available for all users. | ||
| await workBenchActions.verifyClientListColumnsAreVisible(); | ||
| }); |
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.
you can automate this scenarios as well:
"Verify that user can see the Client List visualization available for all users."
by checking the number of rows in table and comparing with the number of rows in text view
and also this scenario can be automated
Verify that user have the following error when there is no permission to run the CLIENT LIST: "NOPERM this user has no permissions to run the 'CLIENT LIST' command or its subcommand"
Delete .only
No description provided.