Skip to content

Commit

Permalink
fix: update tests to reflect the current ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Katajisto committed Sep 23, 2024
1 parent c5644d8 commit d7cf914
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/features/upgrade-recipe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ Feature: Upgrade sauce
And I change recipe "foo" to version "v0.0.2"
And I change recipe "foo" template "README.md" to render "New version"
And I change project file "README.md" to contain "Locally modified"
And I buffer key presses "n\r"
And I buffer key presses "\r"
When I upgrade recipe "foo"
Then CLI produced an output "README\.md: keep"
Then CLI produced an output "README\.md: use old"
Then CLI produced an output "no changes were made to any files"
And the project directory should contain file "README.md" with "Locally modified"

Expand All @@ -142,9 +142,9 @@ Feature: Upgrade sauce
And I change recipe "foo" to version "v0.0.2"
And I change recipe "foo" template "README.md" to render "New version"
And I change project file "README.md" to contain "Locally modified"
And I buffer key presses "y\r"
And I buffer key presses "\r"
When I upgrade recipe "foo"
Then CLI produced an output "README\.md: override"
Then CLI produced an output "README\.md: use new"
Then CLI produced an output "README\.md \(modified\)"
And the project directory should contain file "README.md" with "New version"

Expand All @@ -157,7 +157,7 @@ Feature: Upgrade sauce
And I change project file "README.md" to contain "Locally modified"
And I buffer key presses "→←→\r"
When I upgrade recipe "foo"
Then CLI produced an output "README.md: override"
Then CLI produced an output "README.md: use new"
Then CLI produced an output "README\.md \(modified\)"
And the project directory should contain file "README.md" with "New version"

Expand Down Expand Up @@ -192,4 +192,4 @@ Feature: Upgrade sauce
And I change project file "README.md" to contain "Locally modified"
When I upgrade recipe "foo" forcefully
Then CLI produced an output "README\.md \(modified\)"
And the project directory should contain file "README.md" with "New version"
And the project directory should contain file "README.md" with "New version"

0 comments on commit d7cf914

Please sign in to comment.