Changed wrong button structure un buckets list page (#2218)

Also fixed issue with tests part 3 workflow

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-08-01 22:04:51 -05:00
committed by GitHub
parent cb6cda7265
commit c311847dcf
3 changed files with 27 additions and 35 deletions

View File

@@ -76,11 +76,11 @@ test
test
.before(async (t) => {
// Create a bucket
await functions.setUpBucket(t, "bucketread3");
await functions.setUpBucket(t, "aread3");
await t
.useRole(roles.admin)
.navigateTo("http://localhost:9090/buckets")
.click(testBucketBrowseButtonFor("bucketread3"))
.click(testBucketBrowseButtonFor("aread3"))
// Upload object to bucket
.setFilesToUpload(elements.uploadInput, "../uploads/test.txt")
.click(logoutItem);
@@ -90,12 +90,12 @@ test
.useRole(roles.bucketRead)
.navigateTo("http://localhost:9090/buckets")
.wait(2000)
.click(testBucketBrowseButtonFor("bucketread3"))
.click(testBucketBrowseButtonFor("aread3"))
.wait(2000)
.expect(elements.table.exists)
.ok();
})
.after(async (t) => {
// Cleanup created bucket and corresponding uploads
await functions.cleanUpBucketAndUploads(t, "bucketread3");
await functions.cleanUpBucketAndUploads(t, "aread3");
});

View File

@@ -122,10 +122,8 @@ export const cleanUpBucket = (t, modifier) => {
};
export const namedTestBucketBrowseButtonFor = (name) => {
return Selector("h1")
.withText(name)
.parent(4)
.find("button:enabled")
return Selector("button:enabled")
.withAttribute("id", `browse-${name}`)
.withText("Browse");
};