Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

objelov
Copy link

@objelov objelov commented Sep 28, 2024

No description provided.

Copy link

@Ivan-Shvorak Ivan-Shvorak left a 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');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. move all aliases to constants
  2. 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';

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')

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants