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

feat(ui): tweak telegraf nginx and redis flows #15710

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

hoorayimhelping
Copy link
Contributor

@hoorayimhelping hoorayimhelping commented Nov 1, 2019

Closes #15500

This wasn't actually a bug, but a confusing interaction. This uri array component expects users to hit enter to add an item to the list (good luck, mobile / tablet users). This adds a button to help out that interaction. It also changes the way the form is handled so that it doesn't fire an empty event, causing an error.

The bug was reported for nginx, but the confusing interaction also appeared in redis, so this fix has been applied there as well. e2e tests were added to both.

in 2 26 45 PM

@hoorayimhelping hoorayimhelping requested a review from a team November 1, 2019 03:23
@ghost ghost requested review from 121watts and drdelambre and removed request for a team November 1, 2019 03:23
@hoorayimhelping hoorayimhelping force-pushed the bs_fix_nginx_wizard_ branch 2 times, most recently from fd10013 to 50f99cd Compare November 1, 2019 16:42
Copy link
Contributor

@drdelambre drdelambre left a comment

Choose a reason for hiding this comment

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

some curiosity about the test setup, but golf claps and raises all around

AutoComplete,
Columns,
Copy link
Contributor

Choose a reason for hiding this comment

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

WHOOOO alphabetical!!!

// fix for https://github.com/influxdata/influxdb/issues/15500
describe('configuring nginx', () => {
beforeEach(() => {
cy.contains('Create Configuration').click()
Copy link
Contributor

Choose a reason for hiding this comment

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

why this and not just cy.visit(whateverurl)? do we want to test that you always get to the page the same way? or is this some weirdness with the tests? also, idk what i'm reading

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this all happens in the context of a popups / modals - you click 'Create Configuration', then you click NGINX (or redis), then Cotinue, etc. i'll add a comment explaining it.

Copy link
Contributor

Choose a reason for hiding this comment

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

might be fine as is. i was just under the impression that all of our modals are currently behind a route and got suspicious about state management within the app.

Copy link
Contributor

Choose a reason for hiding this comment

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

@drdelambre depending on the url you are trying to visit since it might be outside of our control. Generally, if we're trying to test out whether or not we are visiting that other page (i.e. within our site) it's just easy to test out that other page separately rather than include that within the scope of this test

@@ -77,7 +77,7 @@ describe('Onboarding.Components.ConfigureStep.Streaming.ConfigFieldSwitcher', ()
const {wrapper} = setup({fieldName, fieldType, value}, true)

const input = wrapper.find(ArrayFormElement)
const formElement = wrapper.find(FormElement)
const formElement = wrapper.find(FormElement).first()
Copy link
Contributor

Choose a reason for hiding this comment

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

👍


it('can add and delete urls', () => {
cy.getByTestID('input-field').type('http://localhost:9999')
cy.contains('Add').click()
Copy link
Contributor

Choose a reason for hiding this comment

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

How would you feel about checking to see if the input-field was cleared after the click resolved?

@hoorayimhelping hoorayimhelping merged commit 453b4cf into master Nov 1, 2019
@hoorayimhelping hoorayimhelping deleted the bs_fix_nginx_wizard_🧙‍ branch November 1, 2019 21:31
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.

[UI - Telegrafs] Update NGINX values popup fails to close when clicking done
4 participants