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

Add test for checking stream view #20073

Merged
merged 7 commits into from
Dec 14, 2022
Merged

Conversation

SofiiaZaitseva
Copy link
Contributor

In scope of PR was added test for checking stream view (test case number c_19)
https://docs.google.com/spreadsheets/d/1OMKYYoTAFeCAk_ZXUlFmiKpfnt7x5edRGxRQB4XMyQM

@SofiiaZaitseva SofiiaZaitseva added area/frontend Related to the Airbyte webapp ui/tests labels Dec 5, 2022
@SofiiaZaitseva SofiiaZaitseva requested a review from a team as a code owner December 5, 2022 15:39
@octavia-squidington-iv octavia-squidington-iv removed the area/frontend Related to the Airbyte webapp label Dec 5, 2022
Copy link
Contributor

@dizel852 dizel852 left a comment

Choose a reason for hiding this comment

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

Overall - happy to see more tests 🥳
Left some comments.
Also, I'd like to ask to change test suites structure to smth like this one:
image

@@ -9,6 +9,9 @@ const destinationNamespaceSource = "div[data-testid='namespaceDefinition-source'
const destinationNamespaceCustomInput = "input[data-testid='input']";
const syncModeDropdown = "div[data-testid='syncSettingsDropdown'] input";
const cursorFieldDropdown = "button[class^='PathPopoutButton_button']";
const streamFieldNames = "[class^='TreeRowWrapper_rowWrapper'] span";
const streamDataTypes = "[class^='TreeRowWrapper_rowWrapper'] div:nth-child(2)";
const arrowStream = "[class^='Arrow_container__']";
Copy link
Contributor

Choose a reason for hiding this comment

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

what is an arrow stream? 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2022-12-06 at 21 59 24

button for open stream details

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, okay, can we rename it to ExpandStreamDetailsTableBtn please? 🙂

Copy link
Contributor

@dizel852 dizel852 left a comment

Choose a reason for hiding this comment

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

Did another review - LGTM 👍
Left one small comment.
Would be great to fix it.

@@ -9,6 +9,9 @@ const destinationNamespaceSource = "div[data-testid='namespaceDefinition-source'
const destinationNamespaceCustomInput = "input[data-testid='input']";
const syncModeDropdown = "div[data-testid='syncSettingsDropdown'] input";
const cursorFieldDropdown = "button[class^='PathPopoutButton_button']";
const streamFieldNames = "[class^='TreeRowWrapper_rowWrapper'] span";
const streamDataTypes = "[class^='TreeRowWrapper_rowWrapper'] div:nth-child(2)";
const arrowStream = "[class^='Arrow_container__']";
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, okay, can we rename it to ExpandStreamDetailsTableBtn please? 🙂

Copy link
Contributor

@dizel852 dizel852 left a comment

Choose a reason for hiding this comment

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

LGTM
Passing to @edmundito for review

Comment on lines +12 to +13
const streamFieldNames = "[class^='TreeRowWrapper_rowWrapper'] span";
const streamDataTypes = "[class^='TreeRowWrapper_rowWrapper'] div:nth-child(2)";
Copy link
Contributor

Choose a reason for hiding this comment

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

These selectors work for now, but ideally, we should try to use testIds instead because the implementation can always change and break this. For this PR, it's OK to leave because we also have the problem in other areas.

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.

4 participants