Skip to content

Commit

Permalink
Convert the manageSubProject e2e test to cypress (#1952)
Browse files Browse the repository at this point in the history
Another end-to-end test conversion to Cypress, as part of our efforts at
moving away from Protractor.
  • Loading branch information
sbelsk committed Jan 15, 2024
1 parent 1a7821b commit 306650e
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 199 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ app/cdash/tests/js/e2e_tests/subprojectGroupOrder.js
app/cdash/tests/js/e2e_tests/sort_index.js
app/cdash/tests/js/e2e_tests/remove_build.js
app/cdash/tests/js/e2e_tests/multiSort.js
app/cdash/tests/js/e2e_tests/manageSubProject.js
app/cdash/tests/js/e2e_tests/done_build.js
6 changes: 3 additions & 3 deletions app/cdash/public/views/manageSubProject.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>

<!-- List the subprojects -->
<div ng-controller="SubProjectController" ng-repeat="subproject in cdash.subprojects | orderBy:'name' | filter_subproject_groups:cdash.filteredGroup" class="repeat-item">
<div ng-controller="SubProjectController" ng-repeat="subproject in cdash.subprojects | orderBy:'name' | filter_subproject_groups:cdash.filteredGroup" class="repeat-item" data-cy="subproject-item">
<div class="row">
<div class="col-md-4">
<!-- The subproject's name & an icon to fetch more info -->
Expand Down Expand Up @@ -87,7 +87,7 @@
</div>

<div class="row repeat-item" ng-repeat="dep in details.dependencies | orderBy:'name'">
<div class="col-md-5">
<div class="col-md-5" data-cy="current-dependency">
<!-- Remove a dependency from a subproject -->
- {{dep.name}}
<span ng-click="removeDependency(dep.id, details.subprojectid)" class="glyphicon glyphicon-trash"></span>
Expand Down Expand Up @@ -151,7 +151,7 @@

<div class="row" ng-if="cdash.groups.length > 0">
<div class="col-md-9">
<table class="table table-striped">
<table class="table table-striped" data-cy="existing-subproject-groups">
<thead>
<tr>
<th>
Expand Down
2 changes: 1 addition & 1 deletion app/cdash/tests/js/e2e_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endfunction()
add_cypress_e2e_test(manage-overview)
add_cypress_e2e_test(sub-project-dependencies)
add_cypress_e2e_test(manage-build-group)
add_protractor_test(manageSubProject)
add_cypress_e2e_test(manage-sub-project)
add_protractor_test(viewBuildError)
add_protractor_test(viewTest)
add_protractor_test(sort_index)
Expand Down
194 changes: 0 additions & 194 deletions app/cdash/tests/js/e2e_tests/manageSubProject.js

This file was deleted.

Loading

0 comments on commit 306650e

Please sign in to comment.