Changed SSO Login screen to hide login form by default (#2807)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-05-22 11:20:45 -06:00
committed by GitHub
parent beed4895c1
commit dc90db6591
14 changed files with 261 additions and 435 deletions

View File

@@ -37,7 +37,7 @@ insAllowedSeckey = "poluicrashfix1234";*/
const loginUrl = `${testDomainUrl}/login`;
const bucketsScreenUrl = `${testDomainUrl}/buckets`;
const loginSubmitBtn = Selector("form button");
const loginSubmitBtn = Selector("button").withAttribute("id", "do-login");
export const bucketsSidebarEl = Selector(".MuiPaper-root")
.find("ul")

View File

@@ -46,7 +46,7 @@ insNotAllowedSeckey = "minio123";
const loginUrl = `${testDomainUrl}/login`;
const inspectScreenUrl = `${testDomainUrl}${IAM_PAGES.SUPPORT_INSPECT}`;
const loginSubmitBtn = Selector("form button");
const loginSubmitBtn = Selector("button").withAttribute("id", "do-login");
export const inspectEl = Selector(".MuiPaper-root")
.find("ul")

View File

@@ -63,16 +63,20 @@ test
.useRole(roles.conditions2)
.navigateTo(`http://localhost:9090/browser`)
.click(test1BucketBrowseButton)
.wait(1500)
.click(
Selector(".ReactVirtualized__Table__rowColumn").withText("firstlevel")
)
.wait(1500)
.expect(file.exists)
.notOk()
.wait(1500)
.click(
Selector(".ReactVirtualized__Table__rowColumn").withText(
"secondlevel"
)
)
.wait(1500)
.expect(file.exists)
.notOk();
}
@@ -113,19 +117,25 @@ test
.useRole(roles.conditions1)
.navigateTo(`http://localhost:9090/browser`)
.click(test1BucketBrowseButton)
.wait(1500)
.click(
Selector(".ReactVirtualized__Table__rowColumn").withText("firstlevel")
)
.wait(1500)
.expect(file.exists)
.ok()
.wait(1500)
.click(
Selector(".ReactVirtualized__Table__rowColumn").withText("secondlevel")
)
.wait(1500)
.expect(file.exists)
.ok()
.wait(1500)
.click(
Selector(".ReactVirtualized__Table__rowColumn").withText("thirdlevel")
)
.wait(1500)
.expect(file.exists)
.ok();
})

View File

@@ -7,7 +7,7 @@ const unixTimestamp = data.trim();
const loginUrl = "http://localhost:9090/login";
// diagnostics/watch/trace need to run in port 9090 (through the server) to work
const loginUrlServer = "http://localhost:9090/login";
const submitButton = Selector("form button");
const submitButton = Selector("button").withAttribute("id", "do-login");
export const admin = Role(
loginUrl,