-
Notifications
You must be signed in to change notification settings - Fork 404
[E2E] Workbench tests are added #153
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
Conversation
//Go back to Workbench page | ||
await t.click(myRedisDatabasePage.workbenchButton); | ||
//Check that scroll position is saved | ||
await t.expect(workbenchPage.scrolledEnablementArea.scrollTop).eql(scrollPosition, 'Scroll position is correct'); |
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.
Regarding the error message, the more correct is The scroll position status
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.
Fixed
//Select Command Palette option | ||
await t.click(workbenchPage.monacoContextMenu.find(workbenchPage.cssMonacoCommandPaletteLine)); | ||
//Print "Run Commands" shortcut | ||
await t.typeText(workbenchPage.monacoShortcutInput, 'Run Commands'); |
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 recommend using with { replace: true, paste: true }
on typeText
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.
Did not add replace and paste options because monaco context menu doesn't work with them and test fails. Need "typeahead" behavior in this test
await t.click(workbenchPage.monacoSuggestionOption); | ||
//Check the result with sent command | ||
const commandTextInResult = await workbenchPage.queryCardCommand.withExactText(command); | ||
await t.expect(commandTextInResult.exists).ok('Result of sent command exists'); |
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.
More accurate error message: The result of sent command
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.
Fixed
The following tests are added: