1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-15 16:10:06 +00:00

chore(cypress): debugging

This commit is contained in:
Yury Shkoda
2023-05-29 17:19:08 +03:00
parent 5f8750a8b6
commit f6ee1111c5
2 changed files with 33 additions and 15 deletions

View File

@@ -1,12 +1,12 @@
import React, { ReactElement, useState, useContext, useEffect } from 'react'
import { TestSuiteRunner, TestSuite, AppContext } from '@sasjs/test-framework'
import { basicTests } from './testSuites/Basic'
import { sendArrTests, sendObjTests } from './testSuites/RequestData'
import { specialCaseTests } from './testSuites/SpecialCases'
import { sasjsRequestTests } from './testSuites/SasjsRequests'
import '@sasjs/test-framework/dist/index.css'
import { computeTests } from './testSuites/Compute'
import { fileUploadTests } from './testSuites/FileUpload'
// import { sendArrTests, sendObjTests } from './testSuites/RequestData'
// import { specialCaseTests } from './testSuites/SpecialCases'
// import { sasjsRequestTests } from './testSuites/SasjsRequests'
// import '@sasjs/test-framework/dist/index.css'
// import { computeTests } from './testSuites/Compute'
// import { fileUploadTests } from './testSuites/FileUpload'
const App = (): ReactElement<{}> => {
const { adapter, config } = useContext(AppContext)
@@ -16,17 +16,17 @@ const App = (): ReactElement<{}> => {
useEffect(() => {
if (adapter) {
const testSuites = [
basicTests(adapter, config.userName, config.password),
sendArrTests(adapter, appLoc),
sendObjTests(adapter),
specialCaseTests(adapter),
sasjsRequestTests(adapter),
fileUploadTests(adapter)
basicTests(adapter, config.userName, config.password)
// sendArrTests(adapter, appLoc),
// sendObjTests(adapter),
// specialCaseTests(adapter),
// sasjsRequestTests(adapter),
// fileUploadTests(adapter)
]
if (adapter.getSasjsConfig().serverType === 'SASVIYA') {
testSuites.push(computeTests(adapter, appLoc))
}
// if (adapter.getSasjsConfig().serverType === 'SASVIYA') {
// testSuites.push(computeTests(adapter, appLoc))
// }
setTestSuites(testSuites)
}