-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds retry button for project baseUrl warning (#5325)
* Adds retry button for project baseUrl warning * Refactors project retry button * Refactors to improve testability and adds tests * Adds back reopenProject method * Fixes warning message test errors * Makes requested changes * improve selectors * fix dismissing warnings * rename clear warning to dismiss warning * refactor / improve - only add retry button if it's the base url warning - keep warning around while waiting for retry - move tests to warning message spec * disable retry button and show retrying message while retrying base url Co-authored-by: ngunnarson <[email protected]> Co-authored-by: Jennifer Shehane <[email protected]> Co-authored-by: Chris Breiding <[email protected]>
- Loading branch information
1 parent
9a78515
commit cb0f32b
Showing
10 changed files
with
183 additions
and
24 deletions.
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
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
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
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,27 @@ | ||
import { action, computed, observable } from 'mobx' | ||
|
||
class Warning { | ||
@observable type | ||
@observable message | ||
@observable isDismissed = false | ||
@observable isRetrying = false | ||
|
||
constructor (props) { | ||
this.type = props.type | ||
this.message = props.message | ||
} | ||
|
||
@computed get isRetryable () { | ||
return this.type === 'CANNOT_CONNECT_BASE_URL_WARNING' | ||
} | ||
|
||
@action setDismissed (isDismissed) { | ||
this.isDismissed = isDismissed | ||
} | ||
|
||
@action setRetrying (isRetrying) { | ||
this.isRetrying = isRetrying | ||
} | ||
} | ||
|
||
export default Warning |
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
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
cb0f32b
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.
Circle has built the
linux x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.