Merge Active Profile picker with Profile management
This commit is contained in:
@@ -155,7 +155,7 @@ func TestBusyProfileTransitionBlocksPageEntryAndEveryNewOperation(t *testing.T)
|
||||
t.Fatalf("Profile transition did not start exactly once: command=%v intents=%#v", command != nil, module.intents)
|
||||
}
|
||||
|
||||
for _, key := range []string{"p", "r", " "} {
|
||||
for _, key := range []string{"p", "m", "r", " "} {
|
||||
updated, blocked := model.Update(keyMessage(key))
|
||||
model = updated.(Model)
|
||||
if blocked != nil || model.page != mainPage || len(module.intents) != 1 {
|
||||
@@ -191,7 +191,7 @@ func TestBusyRefreshBlocksTogglePageEntryRefreshAndActivation(t *testing.T) {
|
||||
t.Fatal("refresh did not start")
|
||||
}
|
||||
|
||||
for _, key := range []string{" ", "p", "r"} {
|
||||
for _, key := range []string{" ", "p", "m", "r"} {
|
||||
updated, blocked := model.Update(keyMessage(key))
|
||||
model = updated.(Model)
|
||||
if blocked != nil || model.page != mainPage || len(module.intents) != 1 {
|
||||
@@ -281,7 +281,7 @@ func TestQAndEscapeReturnFromNestedPages(t *testing.T) {
|
||||
if command != nil || !strings.Contains(updated.(Model).View(), "Operations Console") {
|
||||
t.Fatalf("help key %q did not return to Operations Console", key.String())
|
||||
}
|
||||
model = updateKey(NewModel(module), "p")
|
||||
model = updateKey(NewModel(module), "m")
|
||||
updated, command = model.Update(key)
|
||||
if command != nil || !strings.Contains(updated.(Model).View(), "Operations Console") {
|
||||
t.Fatalf("Profile key %q did not return to Target panel", key.String())
|
||||
|
||||
Reference in New Issue
Block a user