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

Fix ui test of ci #752

Merged
merged 21 commits into from
Sep 17, 2020
Merged

Fix ui test of ci #752

merged 21 commits into from
Sep 17, 2020

Conversation

baurine
Copy link
Collaborator

@baurine baurine commented Sep 8, 2020

No description provided.

@baurine baurine changed the title Fix ui test Fix ui test of ci Sep 8, 2020
@baurine
Copy link
Collaborator Author

baurine commented Sep 8, 2020

Get fail reason: Sign in failed: Failed to connect to TiDB log, seem referees to issue: pingcap/tidb#19731 . Try to test v4.0.5

@baurine
Copy link
Collaborator Author

baurine commented Sep 8, 2020

TiDB v4.0.5 works fine, so it can be confirmed the root cause is pingcap/tidb#19731 . Should we use the stable TiDB instead of the nightly version? @breeswish

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

The rest LGTM

await ppExpect(page).toMatch('TiDB authentication failed')

const failReason = await page.waitForSelector(
'form#tidb_signin div[data-e2e="password"] div:last-child'
Copy link
Member

Choose a reason for hiding this comment

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

This div:last-child is too magical.. Can we await for pages to contain some string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems no way to add the extra flag to the error message self except to its parent container likes data-e2e="password".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Or we can simply remove the div:last-child.

Copy link
Collaborator Author

@baurine baurine Sep 17, 2020

Choose a reason for hiding this comment

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

Just got what you mean. I print the failed reason content to help debug what the exact failed reason. It may not be "TiDB authentication failed", it may "Failed to connect to TiDB" etc. So when the UI test fails later, I can know what makes it fail.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, got it!

@breezewish breezewish merged commit fe22ca2 into pingcap:master Sep 17, 2020
@baurine baurine deleted the fix-ui-test branch September 17, 2020 06:28
breezewish pushed a commit that referenced this pull request Nov 26, 2020
breezewish added a commit that referenced this pull request Nov 26, 2020
* misc: Increase ulimit to 65535 for test env (#756)
* test: Fix frontend CI (#752)
* ui: fix dayjs i18n (#755)
* ui: handle error globally (#757)
* statement, slow_query: support all fields in list page (#749)
* ui: memorize expand/collapse full text in detail pages (#775)
* ui: break loop dependencies (#771)
* ui: fix browser compatibility check (#776)
* ui: Refine store location, add zoom and pan (#772)
* ui: show disk usage information for statement and slow query (#777)
* ui: use qps instead of ops (#786)
* statement: support export (#778)
*: Fix slow query and start_ts not working in some cases (#793)
* ui: fix errors doesn't display (#794)
* ui: fix the error message doesn't show correct (#799)
* slow_queries: support export (#792)
* ui: add MySqlFormatter to customize the sql formatter (#805)
*: fix query statement detail error cause by round (#806)
* ui: copy original content instead of formatted content for CopyLink (#802)
* add min height of topology canvas (#804)
* metrics: Support customize Prometheus address (#808)
* clusterinfo: Refine (#815)
* ui: Open statement and slow log in new tab (#816)
* ui: add more time field for slow query detail page (#810)
* slowlog: Improve descriptions (#817)
* build: add action to check release-version is changed for release branch
* Release v2020.11.26.1
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.

None yet

2 participants