Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Jan 10, 2025
1 parent bbf6914 commit 1a47573
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tests/acceptance/guid-node/addons-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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"]');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a47573

Please sign in to comment.