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

Added e2e tests for page.tag.attached webhook #15648

Merged
merged 1 commit into from
Oct 30, 2022
Merged

Added e2e tests for page.tag.attached webhook #15648

merged 1 commit into from
Oct 30, 2022

Conversation

leonyangela
Copy link
Contributor

@leonyangela leonyangela commented Oct 18, 2022

ref #15537

Got some code for us? Awesome 🎊!

Please include a description of your change & check your PR against this list, thanks!

  • There's a clear use-case for this code change, explained below
  • Commit message has a short title & references relevant issues
  • The build will pass (run yarn test:all and yarn lint)

We appreciate your contribution!

Also, if you'd be interested in writing code like this for us more regularly, we're hiring:
https://careers.ghost.org

@naz naz self-assigned this Oct 19, 2022
@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Base: 53.40% // Head: 52.74% // Decreases project coverage by -0.65% ⚠️

Coverage data is based on head (a3b260d) compared to base (a8b1676).
Patch has no changes to coverable lines.

❗ Current head a3b260d differs from pull request most recent head 533c884. Consider uploading reports for the commit 533c884 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15648      +/-   ##
==========================================
- Coverage   53.40%   52.74%   -0.66%     
==========================================
  Files        1502     1470      -32     
  Lines       97873    96161    -1712     
  Branches    10958    10765     -193     
==========================================
- Hits        52269    50721    -1548     
+ Misses      44345    44179     -166     
- Partials     1259     1261       +2     
Impacted Files Coverage Δ
ghost/admin/app/controllers/settings/analytics.js 0.00% <0.00%> (-100.00%) ⬇️
ghost/admin/app/routes/settings/analytics.js 0.00% <0.00%> (-24.14%) ⬇️
ghost/admin/app/helpers/gh-price-amount.js 44.44% <0.00%> (-22.23%) ⬇️
...core/core/server/services/mega/feedback-buttons.js 78.26% <0.00%> (-21.74%) ⬇️
ghost/admin/app/components/posts-list/list-item.js 40.00% <0.00%> (-16.00%) ⬇️
ghost/admin/app/routes/posts/analytics.js 0.00% <0.00%> (-13.34%) ⬇️
ghost/admin/app/components/gh-explore-iframe.js 55.00% <0.00%> (-5.00%) ⬇️
ghost/admin/app/services/members-utils.js 66.27% <0.00%> (-3.83%) ⬇️
ghost/core/core/server/data/db/backup.js 74.13% <0.00%> (-2.79%) ⬇️
ghost/admin/app/controllers/members-activity.js 55.55% <0.00%> (-2.34%) ⬇️
... and 84 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -23,6 +24,17 @@ const tierSnapshot = {

const roleSnapshot = tierSnapshot;

const tagSnapshot = {
Copy link
Contributor

Choose a reason for hiding this comment

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

The tag's name, slug, visibility etc. are not changing between test runs? If they are not, would be best to have snapshot capture them as is - no need to include non-dynamic properties in the snapshot matcher object 👍

Copy link
Contributor

@naz naz left a comment

Choose a reason for hiding this comment

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

Hey @leonyangela! Thanks for taking time to make the contribution. It's in pretty good shape just needs to polish up a few rough edges. I've left some guiding comments in the PR for the improvements. Feel free to reach out if you need more guidance 😊

@github-actions
Copy link
Contributor

Note from our bot: Some changes have been requested on this pull request. Updating your code is great, but won't notify us, so please leave a comment so that we (and our bot) can see when you've made the changes. Thank you 🙏

@naz naz mentioned this pull request Oct 19, 2022
29 tasks
@leonyangela
Copy link
Contributor Author

Hi @naz, Thanks for your feedback. I've made another changes. I've tried to run yarn lint but there is an error saying that:

Oops! Something went wrong! :(

ESLint: 8.25.0

No files matching the pattern "'core/server/**/*.js'" were found.
Please check for typing mistakes in the pattern.

error Command failed with exit code 2.

Do you have any idea for this? I also made a changes on tagSnapshot, please let me know if there's more feedback. Thank you.

@leonyangela
Copy link
Contributor Author

Hi @naz, I've updated the tagSnapshot and made some changes. Please let me know if there's any more feedback, cheers!

@naz
Copy link
Contributor

naz commented Oct 26, 2022

Hey @leonyangela , just a heads up there are some linting errors that need to be fixed. The rest of the code is heading in a right direction 👍

@leonyangela
Copy link
Contributor Author

leonyangela commented Oct 26, 2022

Hi @naz, the lint test flow keeps failing, I have no idea on this, any suggestions?

$ yarn workspaces run lint

> @tryghost/adapter-manager
$ eslint . --ext .js --cache

> ghost-admin
$ yarn lint:js && yarn lint:hbs
$ eslint .
$ ember-template-lint .


> @tryghost/api-framework
$ yarn lint:code && yarn lint:test
$ eslint *.js lib/ --ext .js --cache
$ eslint -c test/.eslintrc.js test/ --ext .js --cache

> @tryghost/api-version-compatibility-service
$ yarn lint:code && yarn lint:test
$ eslint *.js lib/ --ext .js --cache
$ eslint -c test/.eslintrc.js test/ --ext .js --cache

> @tryghost/audience-feedback
$ yarn lint:code && yarn lint:test
$ eslint *.js lib/ --ext .js --cache
$ eslint -c test/.eslintrc.js test/ --ext .js --cache

> @tryghost/bootstrap-socket
$ eslint . --ext .js --cache

> @tryghost/constants
$ eslint . --ext .js --cache

> ghost
warning [email protected]: The engine "cli" appears to be invalid.
$ yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test
warning [email protected]: The engine "cli" appears to be invalid.
$ eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js'

Oops! Something went wrong! :(

ESLint: 8.26.0

No files matching the pattern "'core/server/**/*.js'" were found.
Please check for typing mistakes in the pattern.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 2
Command: C:\Program Files\nodejs\node.exe
Arguments: C:\Users\DESKTOP-001\AppData\Roaming\npm\node_modules\yarn\lib\cli.js run lint
Directory: C:\Users\DESKTOP-001\Documents\GitHub\Ghost\ghost\core
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspaces for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Result after I commit:

◼ Preparing lint-staged...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠋ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠙ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠹ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠸ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠴ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠦ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠧ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠇ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠏ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠋ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠙ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠹ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠸ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠼ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
⠴ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
◼ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
⠴ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ◼ package.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ⠴ package.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ◼ *.js — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ⠴ *.js — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ◼ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠴ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠧ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠇ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠏ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠋ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠙ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠹ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠸ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠼ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠴ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠧ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠇ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠏ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠋ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠙ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠹ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠸ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠼ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠴ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠧ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠇ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠏ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠋ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠙ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠹ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠸ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠼ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠴ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠧ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠇ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠏ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠋ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠙ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠹ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠸ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠧ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file      
      ⠇ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠏ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠋ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠙ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠹ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠸ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠼ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠴ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ⠦ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ❯ *.js — 1 file
      ✔ eslint
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ❯ package.json — 1 file
    ✔ *.js — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
❯ Running tasks for staged files...
  ✔ package.json — 1 file
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
◼ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠦ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠧ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠇ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
⠏ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
◼ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠏ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠋ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠙ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠹ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
⠸ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
✔ Preparing lint-staged...
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
Done in 10.76s.
Checking submodules (pre-commit hook) 
No submodules in commit, continuing...
[main a3b260d6bf] Fix linting error
 1 file changed, 2 insertions(+), 4 deletions(-)

Copy link
Contributor

@naz naz left a comment

Choose a reason for hiding this comment

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

The linting passed! 🚀 You got there eventually @leonyangela , thanks for the effort and great contribution 💪

@leonyangela
Copy link
Contributor Author

ah great, thank you @naz.

ref #15537

🎨 Update tagSnapshot
🎨 Update buildPreviousPageSnapshotWithTiersAndTags function
@ErisDS ErisDS changed the title Added e2e tests for page.tag.attached webhook Added e2e tests for page.tag.attached webhook Oct 30, 2022
@ErisDS ErisDS merged commit 7df2b76 into TryGhost:main Oct 30, 2022
@ErisDS
Copy link
Member

ErisDS commented Oct 30, 2022

Hi @leonyangela thanks so much for this PR. It has now been merged 🎉 FYI I had to rebase it as it conflicted with changes made to add the page.tag.detached tests.

I'm not sure if you found this through hacktoberfest, but I've added the hacktoberfest-accepted label to this PR to make sure it counts. We have plenty of open issues and ongoing projects for hacktoberfest and beyond. We would love to see you around again 👋

@leonyangela
Copy link
Contributor Author

Hi @ErisDS, thank you. Yes, I found this from hacktoberfest, thanks for adding the hacktoberfest-accepted label, cheers 🍻.

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

Successfully merging this pull request may close these issues.

3 participants