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,8 +7,12 @@ 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)
# 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
project_to_delete = Resource::Project.fabricate_via_api! do |project|
project.name = 'delete-this-project'
......@@ -18,7 +22,6 @@ module QA
deleted_project_name = project_to_delete.name
deleted_project_id = project_to_delete.id
end
end
it 'replicates deletion of a project to secondary node' do
Runtime::Browser.visit(:geo_secondary, QA::Page::Main::Login)
......
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