From 3cdb9f8e3c8a519783e2feeb3d831a223c5d641b Mon Sep 17 00:00:00 2001 From: Gary Lockett Date: Fri, 16 Sep 2022 01:04:57 +0100 Subject: [PATCH] cover more default branch switching scenarios Signed-off-by: Gary Lockett --- feature/default-branch-switching.feature | 44 +++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/feature/default-branch-switching.feature b/feature/default-branch-switching.feature index f169a83f..d70aba3b 100644 --- a/feature/default-branch-switching.feature +++ b/feature/default-branch-switching.feature @@ -40,7 +40,49 @@ Feature: Default branch switching | 1.3.x | And the default branch should be "1.3.x" - Scenario: A pre-existing branch of a greater major release is set as default branch on release + Scenario: A new minor branch on a pre-existing major branch is created and set as default branch on release + Given following existing branches: + | branch | + | 1.0.x | + | 1.1.x | + | 1.2.x | + | 2.0.x | + And following open milestones: + | name | + | 2.0.0 | + And the default branch is "1.0.x" + When I close milestone "2.0.0" + Then these should be the existing branches: + | branch | + | 1.0.x | + | 1.1.x | + | 1.2.x | + | 2.0.x | + | 2.1.x | + And the default branch should be "2.1.x" + + Scenario: A pre-existing branch of a new major release is not set as default branch on release + Given following existing branches: + | branch | + | 1.0.x | + | 1.1.x | + | 1.2.x | + | 2.0.x | + And following open milestones: + | name | + | 1.2.0 | + And the default branch is "1.0.x" + When I close milestone "1.2.0" + Then these should be the existing branches: + | branch | + | 1.0.x | + | 1.1.x | + | 1.2.x | + | 1.3.x | + | 2.0.x | + And the default branch should be "1.3.x" + + Scenario: A pre-existing minor branch of a greater major release is set as default branch on release Given following existing branches: | branch | | 1.0.x |