Commit ef43b427 authored by 龚小红's avatar 龚小红

Merge branch 'gifeature/20211115-gj' into 'master'

集客助手公司专区增加视频类型修复

See merge request test-group/kejiji!167
parents 1c04b891 37ff3c61
......@@ -401,6 +401,7 @@ public class HomePage implements Authorization {
@Test(description = "首页_公司专区列表",priority = 21)
public void 首页_公司专区列表(){
//获取公司专区标签id
sleep(5000);
Response response = network.getResponse(Daily_getTagList);
Object id = response.jsonPath().getJsonObject("data.get(0).id");
String desc = response.jsonPath().getString("desc");
......@@ -429,7 +430,7 @@ public class HomePage implements Authorization {
params.put("pageNo",1);
params.put("pageSize",20);
Response listRes = network.getResponse(params,MANAGER_exclusiveItemPage);
Object id = listRes.jsonPath().getJsonObject("data.list.get(1).id");
Object id = listRes.jsonPath().getJsonObject("data.list.get(3).id");
String desc = listRes.jsonPath().getString("desc");
Assert.assertEquals(desc,"OK",network.message(params,MANAGER_exclusiveItemPage,"获取id失败",listRes.body().asString()));
companyCount = listRes.jsonPath().getInt("data.list.size()");
......@@ -453,11 +454,11 @@ public class HomePage implements Authorization {
paramsList.put("source",1);
Response dataRes = network.getResponse(paramsList,HOME_companyGetContentList);
int totalCount = dataRes.jsonPath().getInt("data.totalCount");
int totalCountNew = companyCount-2;//因为其中还包含一个视频,一个删除的文章,所以减去2
int totalCountNew = companyCount-3;//因为其中还包含一个视频,一个删除的文章,所以减去2
Assert.assertEquals(totalCount,totalCountNew,network.message(paramsList,HOME_companyGetContentList,"获取公司专区内容列表数据错误",dataRes.body().asString()));
}
//管理后台删除文章
//管理后台删除视频
@Test(description = "管理后台_删除公司专区视频",priority = 23)
public void 管理后台_删除公司专区视频(){
//获取删除的视频的id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment