fix(34): WR-10 expect older compatible releases in the Plugins screen smoke test
The smoke fixture's acme.blog has v0.1.1 for framework v0.6.0 under a newest release that needs v0.7.0; plugin:install picks v0.1.1, so the marketplace now marks it compatible.
This commit is contained in:
@@ -412,9 +412,11 @@ func pluginsRegistrySubtests(t *testing.T) {
|
||||
if len(all.Data) != 3 || all.Meta.Total != 3 {
|
||||
t.Fatalf("unfiltered marketplace = %+v", all)
|
||||
}
|
||||
// The newest blog release needs v0.7.0, but v0.1.1 fits v0.6.0 and
|
||||
// is what plugin:install would pick: compatible, no marker (WR-10).
|
||||
blog := all.Data[0]
|
||||
if blog.ID != "acme.blog" || !blog.Installed || blog.Compatible || blog.LatestFramework != "v0.7.0" {
|
||||
t.Fatalf("installed blog needing a newer framework = %+v", blog)
|
||||
if blog.ID != "acme.blog" || !blog.Installed || !blog.Compatible || blog.LatestFramework != "v0.7.0" {
|
||||
t.Fatalf("installed blog with an older compatible release = %+v", blog)
|
||||
}
|
||||
|
||||
for _, target := range []string{
|
||||
|
||||
Reference in New Issue
Block a user