From 152e9ff7d164f293cf10d4168fdec854d9e50891 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 11 Feb 2022 10:01:08 +0000 Subject: [PATCH] Added acceptance test for members import modal display refs https://github.com/TryGhost/Team/issues/1320 - start of acceptance tests ready for more detailed testing - added ignore of `no-duplicate-landmark-elements` lint rule in import modal template - the rule was a false flag because the conditionals only allow one `
` element to be rendered at a time --- ghost/admin/.lint-todo | 4 +++ .../app/components/modal-import-members.hbs | 1 + .../tests/acceptance/members/import-test.js | 34 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 ghost/admin/tests/acceptance/members/import-test.js diff --git a/ghost/admin/.lint-todo b/ghost/admin/.lint-todo index be9160c148..74084a13ef 100644 --- a/ghost/admin/.lint-todo +++ b/ghost/admin/.lint-todo @@ -1819,3 +1819,7 @@ remove|ember-template-lint|no-invalid-interactive|134|46|134|46|4ad7f6bd069828b7 remove|ember-template-lint|no-invalid-interactive|141|46|141|46|dc3a0826d71522512799c650db29247eaa5d28a0|1643760000000|1646352000000|1648940400000|app/components/gh-post-settings-menu.hbs remove|ember-template-lint|no-invalid-interactive|159|46|159|46|25a012ac1658c40850fc7509fbcc324d6a66f6f8|1643760000000|1646352000000|1648940400000|app/components/gh-post-settings-menu.hbs add|ember-template-lint|no-invalid-interactive|2|4|2|4|07ed10079a06774ee9528c2b13dc8178744f0a97|1644537600000|1647129600000|1649718000000|app/components/gh-posts-list-item.hbs +remove|ember-template-lint|no-duplicate-landmark-elements|9|8|9|8|09aee7e3475b800a35000dc220f7773c41bcba52|1643760000000|1646352000000|1648940400000|app/components/modal-import-members.hbs +remove|ember-template-lint|no-duplicate-landmark-elements|15|8|15|8|027a945914f8d962353d049ba76df782815eb777|1643760000000|1646352000000|1648940400000|app/components/modal-import-members.hbs +remove|ember-template-lint|no-duplicate-landmark-elements|22|8|22|8|b46a5eafbe20704195c70caef63feb2a42467e5e|1643760000000|1646352000000|1648940400000|app/components/modal-import-members.hbs +remove|ember-template-lint|no-duplicate-landmark-elements|37|8|37|8|54b2819b311941c35c0cc1d64e431ee9d9145b82|1643760000000|1646352000000|1648940400000|app/components/modal-import-members.hbs diff --git a/ghost/admin/app/components/modal-import-members.hbs b/ghost/admin/app/components/modal-import-members.hbs index bf4fdb4c08..cb475e64a9 100644 --- a/ghost/admin/app/components/modal-import-members.hbs +++ b/ghost/admin/app/components/modal-import-members.hbs @@ -1,4 +1,5 @@
+ {{!-- template-lint-disable no-duplicate-landmark-elements --}} {{#if (eq this.state 'INIT')}}