From 1a47573ca5b37355ad44195bac9dd552add6a9fc Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Fri, 10 Jan 2025 00:55:22 -0500 Subject: [PATCH] fix tests --- tests/acceptance/guid-node/addons-test.ts | 10 +++++----- .../addons-service/manager/component-test.ts | 6 +++--- .../user-addons-manager/component-test.ts | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/acceptance/guid-node/addons-test.ts b/tests/acceptance/guid-node/addons-test.ts index cacb611c541..d247ef864c1 100644 --- a/tests/acceptance/guid-node/addons-test.ts +++ b/tests/acceptance/guid-node/addons-test.ts @@ -45,7 +45,7 @@ module('Acceptance | guid-node/addons', hooks => { .hasAttribute('aria-selected', 'true', 'All addons tab is selected'); // check additonal storage providers - assert.dom('[data-test-addon-list-filter]').exists({ count: 3 }, '3 addon filters are present'); + assert.dom('[data-test-addon-list-filter]').exists({ count: 2 }, '2 addon filters are present'); assert.dom('[data-test-addon-list-filter="additional-storage"]') .hasClass(styles.active, 'Additional storage filter is active'); assert.dom('[data-test-addon-card-connect]').exists({ count: 9 }, '9 storage addons are present'); @@ -57,10 +57,10 @@ module('Acceptance | guid-node/addons', hooks => { assert.dom('[data-test-addon-card-connect]').exists({ count: 2 }, '2 citation addons are present'); // Check cloud-computing providers - await click('[data-test-addon-list-filter="cloud-computing"]'); - assert.dom('[data-test-addon-list-filter="cloud-computing"]') - .hasClass(styles.active, 'Additional citation filter is active'); - assert.dom('[data-test-addon-card-connect]').exists({ count: 1 }, '1 cloud computing addon is present'); + // await click('[data-test-addon-list-filter="cloud-computing"]'); + // assert.dom('[data-test-addon-list-filter="cloud-computing"]') + // .hasClass(styles.active, 'Additional citation filter is active'); + // assert.dom('[data-test-addon-card-connect]').exists({ count: 1 }, '1 cloud computing addon is present'); // Reset to additional storage await click('[data-test-addon-list-filter="additional-storage"]'); diff --git a/tests/integration/components/addons-service/manager/component-test.ts b/tests/integration/components/addons-service/manager/component-test.ts index 3d703ecf637..ad6e98295c6 100644 --- a/tests/integration/components/addons-service/manager/component-test.ts +++ b/tests/integration/components/addons-service/manager/component-test.ts @@ -76,8 +76,8 @@ module('Integration | Component | addons-service | manager', hooks => { assert.dom('[data-test-provider]').hasText('Zotero', 'Filtered down to just Zotero'); // Filter by cloud computing - await click('[data-test-filter=cloud-computing]'); - assert.dom('[data-test-provider]').exists({ count: 1 }, 'Has cloud providers'); - assert.dom('[data-test-provider]').hasText('Boa', 'Has loaded Boa'); + // await click('[data-test-filter=cloud-computing]'); + // assert.dom('[data-test-provider]').exists({ count: 1 }, 'Has cloud providers'); + // assert.dom('[data-test-provider]').hasText('Boa', 'Has loaded Boa'); }); }); diff --git a/tests/integration/components/addons-service/user-addons-manager/component-test.ts b/tests/integration/components/addons-service/user-addons-manager/component-test.ts index 21c14d531d1..e7f93608ac8 100644 --- a/tests/integration/components/addons-service/user-addons-manager/component-test.ts +++ b/tests/integration/components/addons-service/user-addons-manager/component-test.ts @@ -109,9 +109,9 @@ module('Integration | Component | addons-service | user-addons-manager', hooks = assert.dom('[data-test-provider]').hasText('Zotero', 'Filtered down to just Zotero'); // Filter by cloud computing - await click('[data-test-filter=cloud-computing]'); - assert.dom('[data-test-provider]').exists({ count: 1 }, 'Has cloud providers'); - assert.dom('[data-test-provider]').hasText('Boa', 'Has loaded Boa'); + // await click('[data-test-filter=cloud-computing]'); + // assert.dom('[data-test-provider]').exists({ count: 1 }, 'Has cloud providers'); + // assert.dom('[data-test-provider]').hasText('Boa', 'Has loaded Boa'); }); test('it traverses page modes for new account creation', async function(this: AddonManagerTestContext, assert) {