Changed SSO Login screen to hide login form by default (#2807)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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();
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user