1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

migrate stash tests

This commit is contained in:
Jesse Duffield
2023-02-20 21:52:27 +11:00
parent e1c376ef54
commit 2b6a109e38
290 changed files with 452 additions and 582 deletions

View File

@ -6,7 +6,7 @@ import (
)
var Stash = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Stashing files",
Description: "Stashing files directly (not going through the stash menu)",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
@ -23,9 +23,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
Lines(
Contains("file"),
).
Press(keys.Files.ViewStashOptions)
t.ExpectPopup().Menu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm()
Press(keys.Files.StashAllChanges)
t.ExpectPopup().Prompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()