Commit cb734461 authored by Jennie Louie's avatar Jennie Louie

Create a project for proper test setup

Add a project so dashboard always shows project list
parent 3c07ce6e
......@@ -7,17 +7,20 @@ module QA
deleted_project_id = nil
before do
Runtime::Browser.visit(:geo_primary, QA::Page::Main::Login) do
Page::Main::Login.perform(&:sign_in_using_credentials)
project_to_delete = Resource::Project.fabricate_via_api! do |project|
project.name = 'delete-this-project'
project.description = 'Geo project to be deleted'
end
# Need to have at least one project to remain after project deletion,
# to make sure dashboard shows the project list
Resource::Project.fabricate_via_api! do |project|
project.name = 'keep-this-project'
project.description = 'Geo project to keep'
end
deleted_project_name = project_to_delete.name
deleted_project_id = project_to_delete.id
project_to_delete = Resource::Project.fabricate_via_api! do |project|
project.name = 'delete-this-project'
project.description = 'Geo project to be deleted'
end
deleted_project_name = project_to_delete.name
deleted_project_id = project_to_delete.id
end
it 'replicates deletion of a project to secondary node' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment