add and check system arg to state auth type in e2e test(#1924)

* add and check system arg to state auth type

* add tolower

Co-authored-by: czimergebot <35308261+czimergebot@users.noreply.github.com>
This commit is contained in:
Severiano Badajoz
2020-10-09 12:42:02 -06:00
committed by GitHub
co-authored by czimergebot
parent 86ff48ae36
commit beb46bf3df
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -522,7 +522,12 @@ test("lasso moves after pan", async () => {
expect(panCount).toBe(initialCount);
});
describe("auth buttons", () => {
const describeIfCalledByMakeFileTarget =
process.env.CXG_AUTH_TYPE?.toLowerCase() === "test"
? describe
: describe.skip;
describeIfCalledByMakeFileTarget("auth buttons", () => {
test("login then logout", async () => {
await goToPage(appUrlBase);
await clickOnUntil("log-in", async () => {