Skip to content

[AC-113] create cypress test#96

Open
turnkevin wants to merge 13 commits intoA-Comosus:developfrom
turnkevin:feature/AC-120-create-cypress-test
Open

[AC-113] create cypress test#96
turnkevin wants to merge 13 commits intoA-Comosus:developfrom
turnkevin:feature/AC-120-create-cypress-test

Conversation

@turnkevin
Copy link
Copy Markdown
Collaborator

Provide screenshots or videos that the function is working.

image

Provide screenshots of no warning, error in console.

image

  • No merge conflict with the develop branch.
  • Check PR title is correct, (i.e [AC-xx: Feature] Create pull request template).
  • Check your app will run without crashes.
  • Check if there are hard coded values.
  • No //eslint-disable-next-line no-unused-vars, unless otherwise specified.
  • No unnecessary spaces between lines of code.
  • Check you are using camelCase && PascalCase correctly.
  • Check you named your code properly.
  • Remove unused comments.

@turnkevin turnkevin closed this Jul 29, 2022
@turnkevin
Copy link
Copy Markdown
Collaborator Author

Forget to add reviewer

@turnkevin turnkevin reopened this Jul 29, 2022
@NorrisWu0
Copy link
Copy Markdown
Contributor

Are you sure you have checked the checklist properly?

@NorrisWu0
Copy link
Copy Markdown
Contributor

Also, you need to make sure the tests pass on CI as well

@NorrisWu0
Copy link
Copy Markdown
Contributor

Is ac-120 in jira?

@turnkevin turnkevin changed the title Feature/ac 120 create cypress test [AC-120] create cypress test Aug 4, 2022
@turnkevin turnkevin changed the title [AC-120] create cypress test [AC-113] create cypress test Aug 4, 2022
@turnkevin
Copy link
Copy Markdown
Collaborator Author

Are you sure you have checked the checklist properly?

Yes I have already edit the PR

@turnkevin
Copy link
Copy Markdown
Collaborator Author

Is ac-120 in jira?

I create ac-113 as a replacement.

@turnkevin
Copy link
Copy Markdown
Collaborator Author

Also, you need to make sure the tests pass on CI as well

Yes, I think I pass CI.

cy.get('[data-testid="register"]').click();
cy.get('#displayName').type('KevinLu');
cy.get('[data-testid="continue-btn"]').click();
cy.get(':nth-child(2) > .css-13qzv8t').click();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

need to test this with data-test-id

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The category(cy.get(':nth-child(2) > .css-13qzv8t').click(), ) seems like not a button, how can I click it? I changed the display-name already.

cy.visit('http://localhost:3000/sign-up');
cy.get('form').within(() => {
const randomStr = (Math.random() + 1).toString(36).substring(7);
cy.get('#username').type(`KevinLu${randomStr}`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be using username instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I changed #username to id=username like you did in login test

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