mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
grafana/e2e: Add ability to customise scenario config (#60646)
* Add ability to retry e2e test scenarios * Add wait and remove retries * Revert retry logic and elaborate on 15s wait time * No need to update datasource name now
This commit is contained in:
parent
9c3ddda99b
commit
c34aa05548
@ -43,8 +43,12 @@ function provisionAzureMonitorDatasources(datasources: AzureMonitorProvision[])
|
||||
.type(datasource.secureJsonData.clientSecret, { log: false });
|
||||
e2eSelectors.configEditor.loadSubscriptions.button().click().wait('@subscriptions').wait(500);
|
||||
e2eSelectors.configEditor.defaultSubscription.input().find('input').type('datasources{enter}');
|
||||
// Wait for 15s so that credentials are ready. 5s has been tested locally before and seemed insufficient.
|
||||
e2e().wait(15000);
|
||||
},
|
||||
expectedAlertMessage: 'Successfully connected to all Azure Monitor endpoints',
|
||||
// Reduce the timeout from 30s to error faster when an invalid alert message is presented
|
||||
timeout: 10000,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user