-
Notifications
You must be signed in to change notification settings - Fork 135
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
Fix ui test of ci #752
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7e45ece
test
baurine 1bda136
wip
baurine eeebb98
wip
baurine 047c4ec
wip
baurine c4599c3
wip
baurine 669cfd9
wip
baurine 847f04d
wip
baurine 69becf9
wip
baurine 05d5c92
wip
baurine fc0c80c
wip
baurine 1cdd776
wip
baurine 356a640
wip
baurine 89a8180
wip
baurine cde83bd
wip
baurine 7e29afc
wip
baurine 8c31ae5
wip
baurine d5bff2c
Merge branch 'master' into fix-ui-test
baurine 50d3bbf
wip
baurine 350be72
Merge remote-tracking branch 'origin/master' into fix-ui-test
baurine 1ee9b8b
wip
baurine 6920db8
update tidb to 4.0.6
baurine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# Wait unitl `tiup playground` command runs success | ||
|
||
INTERVAL=$1 | ||
MAX_TIMES=$2 | ||
|
||
if ([ -z "${INTERVAL}" ] || [ -z "${MAX_TIMES}" ]); then | ||
echo "Usage: command <interval> <max_times>" | ||
exit 1 | ||
fi | ||
|
||
source /home/runner/.profile | ||
|
||
for ((i=0; i<${MAX_TIMES}; i++)); do | ||
tiup playground display | ||
if [ $? -eq 0 ]; then | ||
exit 0 | ||
fi | ||
sleep ${INTERVAL} | ||
done | ||
|
||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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"
.There was a problem hiding this comment.
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
.There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, got it!