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
+1 -1
View File
@@ -35,7 +35,7 @@ smoke-test:
start_server_and_test \
'CXG_OPTIONS="--config-file $(CXG_CONFIG)" $(MAKE) start-server' \
$(CXG_SERVER_PORT) \
'CXG_URL_BASE="http://localhost:$(CXG_SERVER_PORT)" npm run e2e -- --verbose false'
'CXG_URL_BASE="http://localhost:$(CXG_SERVER_PORT)" CXG_AUTH_TYPE="test" npm run e2e -- --verbose false'
# start an instance of cellxgene and run the end-to-end annotations tests
.PHONY: smoke-test-annotations
+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 () => {