Skip to content
Snippets Groups Projects
Commit 4baf157a authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3278023 by TamakiFujino, kumikoono, yas: Add a BDD test suite for CronJobs (Delete)

parent 36c2f0b4
No related branches found
No related tags found
4 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2
Feature: Create resources for K8s as "Authenticated User"
As a user
I need to create a CronJob
I need to create and delete a CronJob
@api @javascript
Scenario: Create a CronJob
......@@ -35,3 +35,21 @@ Feature: Create resources for K8s as "Authenticated User"
Then the url should match "/clouds/k8s/{{ cloud_context }}/cron_job"
And I should see "has been created"
And I should see "{{ cronjob_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Delete a CronJob
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/cron_job"
And I click "Refresh"
And I wait {{ wait }} milliseconds
And I should see the link "{{ cronjob_name }}"
And I click "{{ cronjob_name }}"
And the url should match "/k8s/{{ cloud_context }}/cron_job/"
And I click "Delete" in the "actions"
And the url should match "/delete"
And I press "Delete"
And I wait for AJAX to finish
Then I should be on "/clouds/k8s/{{ cloud_context }}/cron_job"
And I should see "has been deleted"
And I click "Refresh"
And I should not see the link "{{ cronjob_name }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment