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

Pattern dependency feature #1148

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

bennycraig
Copy link

@bennycraig bennycraig commented Apr 18, 2022

Q A
Is bugfix?
New feature? ✔️
Is backward-compatible? ✔️
Tests pass? ✔️
Fixed issues 1139
Updated README/docs? ✔️
Added CHANGELOG entry? ✔️

Hello! We (@Yeonhobo and me) finished implementing the feature which was requested in issue 1139 (regex pattern based dependency).

Here are the changes we made:

  • modified checkDependency() in src/editor.js
  • Added a test HTML page demonstrating how to use the feature → tests/pages/pattern-dependency.html
  • Added end-to-end test showing it works as expected → tests/codeceptjs/pattern-dependency_test.js
  • Added unit test → tests/unit/editors/object.spec.js
  • Updated README: doc now explains how to use the pattern keyword for validation and pattern-dependency
  • Added CHANGELOG entry

@schmunk42
Copy link
Collaborator

@bennycraig
Copy link
Author

Sorry about that! We fixed the eslint error and just pushed to this branch again.

@schmunk42
Copy link
Collaborator

E2E Tests are failing, could you have another look.

@Yeonhobo
Copy link

Yeonhobo commented May 22, 2022

Hello, sorry about the long wait we just added a quick fix for the E2E bud. Can you try building it another time and seeing if the errors persist? Thank you!

Copy link
Collaborator

@schmunk42 schmunk42 left a comment

Choose a reason for hiding this comment

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

LGTM, @germanbisurgi please have a second look

Copy link
Collaborator

Choose a reason for hiding this comment

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

  • use const instead of var
  • use same indentation as other tests
  • add a @patttern-dependency tag
  • use new codeceptjs syntax (tests will not pass if not)

from
Scenario('Second dependency', (I) => {})

to
Scenario('Second dependency', async ({ I }) => {}

Copy link
Collaborator

Choose a reason for hiding this comment

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

This will trigger a merge conflict. It can be omitted because we update the CHANGELOG every time we make a release.

Copy link
Collaborator

@germanbisurgi germanbisurgi left a comment

Choose a reason for hiding this comment

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

It works but some issues have to be addressed before we merge this.
I added comments in the single changed files there where changes are needed.

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.

None yet

4 participants