add web_long_running_tests shard containing long-running web tests (#67324)
This commit is contained in:
@@ -187,7 +187,11 @@ class WebFlutterDriver extends FlutterDriver {
|
||||
class FlutterWebConnection {
|
||||
/// Creates a FlutterWebConnection with WebDriver
|
||||
/// and whether the WebDriver supports timeline action.
|
||||
FlutterWebConnection(this._driver, this.supportsTimelineAction);
|
||||
FlutterWebConnection(this._driver, this.supportsTimelineAction) {
|
||||
_driver.logs.get(async_io.LogType.browser).listen((async_io.LogEntry entry) {
|
||||
print('[${entry.level}]: ${entry.message}');
|
||||
});
|
||||
}
|
||||
|
||||
final async_io.WebDriver _driver;
|
||||
|
||||
|
||||
@@ -186,7 +186,10 @@ Map<String, dynamic> getDesiredCapabilities(Browser browser, bool headless, [Str
|
||||
return <String, dynamic>{
|
||||
'acceptInsecureCerts': true,
|
||||
'browserName': 'chrome',
|
||||
'goog:loggingPrefs': <String, String>{ async_io.LogType.performance: 'ALL'},
|
||||
'goog:loggingPrefs': <String, String>{
|
||||
async_io.LogType.browser: 'INFO',
|
||||
async_io.LogType.performance: 'ALL',
|
||||
},
|
||||
'chromeOptions': <String, dynamic>{
|
||||
if (chromeBinary != null)
|
||||
'binary': chromeBinary,
|
||||
|
||||
@@ -12,7 +12,10 @@ void main() {
|
||||
final Map<String, dynamic> expected = <String, dynamic>{
|
||||
'acceptInsecureCerts': true,
|
||||
'browserName': 'chrome',
|
||||
'goog:loggingPrefs': <String, String>{ sync_io.LogType.performance: 'ALL'},
|
||||
'goog:loggingPrefs': <String, String>{
|
||||
sync_io.LogType.browser: 'INFO',
|
||||
sync_io.LogType.performance: 'ALL',
|
||||
},
|
||||
'chromeOptions': <String, dynamic>{
|
||||
'w3c': false,
|
||||
'args': <String>[
|
||||
@@ -44,7 +47,10 @@ void main() {
|
||||
final Map<String, dynamic> expected = <String, dynamic>{
|
||||
'acceptInsecureCerts': true,
|
||||
'browserName': 'chrome',
|
||||
'goog:loggingPrefs': <String, String>{ sync_io.LogType.performance: 'ALL'},
|
||||
'goog:loggingPrefs': <String, String>{
|
||||
sync_io.LogType.browser: 'INFO',
|
||||
sync_io.LogType.performance: 'ALL',
|
||||
},
|
||||
'chromeOptions': <String, dynamic>{
|
||||
'binary': chromeBinary,
|
||||
'w3c': false,
|
||||
|
||||
Reference in New Issue
Block a user