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

[ENG-5158] Add node addons acceptance tests #2264

Conversation

futa-ikeda
Copy link
Contributor

@futa-ikeda futa-ikeda commented Jul 4, 2024

Purpose

  • Add acceptance tests for node addons workflows

Summary of Changes

  • Add tests
  • Add data-test selectors
  • Some minor bugfixes discovered along the way
  • Discovered an issue where adding a configured account doesn't show up on the addons page. Will address this in a later PR

Screenshot(s)

  • NA

Side Effects

QA Notes

@futa-ikeda futa-ikeda force-pushed the node-addon-tests branch 2 times, most recently from 826fbb3 to 51ffffc Compare July 11, 2024 20:36
@@ -197,30 +197,6 @@ module('Acceptance | guid-node/metadata', hooks => {
await percySnapshot(assert);
});

test('Error handling: metadata', async function(this: TestContext, assert) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what's going on with this test. It passes in the browser and command line, but fails when the tests are run in parallel. When run in parallel, it seems it can't find element #toast-container.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to skip this and make a ticket to try to figure out what's going on?

Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

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

Overall, looks very good. A couple of comments, but nothing to block merging unless we want to skip the deleted test.

Comment on lines +163 to +166
// check connected accounts tab
await click('[data-test-addons-tab-connected-accounts]');
await percySnapshot('Acceptance | guid-node/addons | Editing configured addons | connected accounts tab');
assert.dom('[data-test-addon-card]').exists({ count: 2 }, '2 providers with accounts are present');
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an aside, I vaguely recall that someone (either Mark, Abram, or both) suggested that we automatically switch to this tab on pageload if there are connected accounts. No need to change anything right now, but that may be coming in UAT.

Comment on lines +237 to +238
// Skip until issue with added account not showing up is resolved
skip('Adding new configured addons', async function(assert) {
Copy link
Contributor

@brianjgeiger brianjgeiger Jul 15, 2024

Choose a reason for hiding this comment

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

Don't forget about this one when the time comes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or should we just try to fix it now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have a ticket to fix this in a separate issue. I've made a note for myself in that ticket to un-skip this test in that ticket

@@ -197,30 +197,6 @@ module('Acceptance | guid-node/metadata', hooks => {
await percySnapshot(assert);
});

test('Error handling: metadata', async function(this: TestContext, assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to skip this and make a ticket to try to figure out what's going on?

@futa-ikeda futa-ikeda merged commit e7168fd into CenterForOpenScience:feature/addon-services Jul 15, 2024
9 checks passed
@futa-ikeda futa-ikeda deleted the node-addon-tests branch July 15, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants