@grafana/e2e: fixes (#24960)
* Resolve Cypress bin path ... instead of expecting it to be in a place that it may not be, depending on de-duping/flattening of nested dependencies * Remove dashboard before removing datasource ... it makes more sense and it fixes random issues, perhaps something to do with how the backend is implemented. * Updated lockfile
This commit is contained in:
@@ -35,13 +35,13 @@ export const e2eScenario = ({
|
||||
|
||||
afterEach(() => {
|
||||
getScenarioContext().then(({ lastAddedDashboardUid, lastAddedDataSource }: any) => {
|
||||
if (lastAddedDataSource) {
|
||||
Flows.deleteDataSource(lastAddedDataSource);
|
||||
}
|
||||
|
||||
if (lastAddedDashboardUid) {
|
||||
Flows.deleteDashboard(lastAddedDashboardUid);
|
||||
}
|
||||
|
||||
if (lastAddedDataSource) {
|
||||
Flows.deleteDataSource(lastAddedDataSource);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user