accordproject / cicero-ui

A library of React components for Accord Project templates
Apache License 2.0
29 stars 45 forks source link

test(components): add tests for titleGenerator & headerGenerator - #123 #321

Closed 98lenvi closed 4 years ago

98lenvi commented 4 years ago

Signed-off-by: lenvi lenvin@oykuapp.com

Issue #123

Added tests for titleGenerator & headerGenerator

Changes

Flags

Related Issues

jolanglinais commented 4 years ago

This is a great start. I was thinking more about an integrations test approach, where we mock the activity of a user to make sure changes don't necessarily alter that functionality. So, for instance, if the ContractEditor has a clause template in it:

Adding this to #123 also.

98lenvi commented 4 years ago

@irmerk Okie! I will do it, but it'll take some time because I'm new to writing tests :disappointed:.

jolanglinais commented 4 years ago

Not a problem, this isn't a high priority.

jolanglinais commented 4 years ago

Just rebase with master and I'll merge this in, and you can work off #123 still if you're inclined to do so.

98lenvi commented 4 years ago

@irmerk, I have first pulled the changes from the upstream, merged with my branch, then performed the rebase. Please tell me whether have I followed the correct steps

jolanglinais commented 4 years ago

That's fine for now. In the future when working on a branch within a fork, I'd go with:

  git checkout master
  git fetch --all --prune
  git rebase upstream/master
  git push origin master
  git checkout 98lenvi-issue123-action-tests
  git rebase master
  git push origin 98lenvi-issue123-action-tests -f