-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking task details via the status link (#1297)
Signed-off-by: Maayan Hadasi <[email protected]>
- Loading branch information
Showing
4 changed files
with
109 additions
and
11 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
62 changes: 62 additions & 0 deletions
62
cypress/e2e/tests/migration/task-manager/task_details.test.ts
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,62 @@ | ||
/* | ||
Copyright © 2021 the Konveyor Contributors (https://konveyor.io/) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
/// <reference types="cypress" /> | ||
|
||
import { | ||
deleteApplicationTableRows, | ||
getRandomAnalysisData, | ||
getRandomApplicationData, | ||
login, | ||
} from "../../../../utils/utils"; | ||
import { Analysis } from "../../../models/migration/applicationinventory/analysis"; | ||
import { TaskManager } from "../../../models/migration/task-manager/task-manager"; | ||
import { TaskKind } from "../../../types/constants"; | ||
|
||
describe(["@tier3"], "Task details validation", function () { | ||
let application: Analysis; | ||
before("Login", function () { | ||
login(); | ||
deleteApplicationTableRows(); | ||
}); | ||
|
||
beforeEach("Load data", function () { | ||
cy.fixture("application").then(function (appData) { | ||
this.appData = appData; | ||
}); | ||
cy.fixture("analysis").then(function (analysisData) { | ||
this.analysisData = analysisData; | ||
}); | ||
}); | ||
|
||
it("Open language-discovery details by clicking on the status link", function () { | ||
application = new Analysis( | ||
getRandomApplicationData("", { | ||
sourceData: this.appData["bookserver-app"], | ||
}), | ||
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"]) | ||
); | ||
application.create(); | ||
TaskManager.openTaskDetailsByStatus(application.name, TaskKind.languageDiscovery); | ||
}); | ||
|
||
it("Open tech-discovery details by clicking on the status link", function () { | ||
TaskManager.openTaskDetailsByStatus(application.name, TaskKind.techDiscovery); | ||
}); | ||
|
||
after("Perform test data clean up", function () { | ||
deleteApplicationTableRows(); | ||
}); | ||
}); |
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