-
Notifications
You must be signed in to change notification settings - Fork 288
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
Task is done and waiting for review #253
base: main
Are you sure you want to change the base?
Conversation
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've done great work, but there is an opportunity for improvement. Please check the comments.
describe('Web Tables page', () => { | ||
it('', () => { | ||
beforeEach(() => { | ||
cy.wrap(generateWorker()).as('workerData'); |
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.
- move all aliases to constants
- not sure if we need this wrap, we can reduce amount of code by not using wrap, but directly this function. For this, we need just to make sure that function returns something
@@ -0,0 +1,22 @@ | |||
import { faker } from '@faker-js/faker'; |
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.
generateData - to general file name, please make it more specific
|
||
this.submitBtn | ||
.should('exist') | ||
.and('be.visible') |
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.
for button, you can also check 'be.enabled'
No description provided.