소스 검색

fix: restore team background section after merge

Developer 2 달 전
부모
커밋
f162869f0c
2개의 변경된 파일과 40개의 추가작업 그리고 18개의 파일을 삭제
  1. 20 18
      components/CusTeamInfoFill/index.vue
  2. 20 0
      tests/teamBackgroundFile.test.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 20 - 18
components/CusTeamInfoFill/index.vue


+ 20 - 0
tests/teamBackgroundFile.test.js

@@ -1072,6 +1072,25 @@ async function testTeamWebsiteInputExposesTheAuthoritativeLengthLimit() {
 	assert.match(source, /v-model="teamInfo\.enterpriseWebsite"[^>]*maxlength="500"/)
 	assert.match(source, /v-model="teamInfo\.enterpriseWebsite"[^>]*maxlength="500"/)
 }
 }
 
 
+async function testTeamFillRendersBackgroundFilesAndBusyState() {
+	const source = fs.readFileSync(teamFillComponentPath, 'utf8')
+	assert.match(
+		source,
+		/<cus-team-background-files[^>]*ref="backgroundRef"[^>]*>/,
+		'the team form must render the registered background-file component'
+	)
+	assert.match(
+		source,
+		/:class="\{ disabled: confirming \|\| submitting \}"/,
+		'the submit button must expose its busy state'
+	)
+	const component = await loadVueComponent(teamFillComponentPath)
+	const state = component.data()
+	assert.equal(state.confirming, false, 'the submit lock must be reactive from initialization')
+	assert.equal(component.props.confirmText.type, String)
+	assert.equal(component.props.qtype.type, Boolean)
+}
+
 async function testTeamFillFlushesBeforeEmitAndLocks() {
 async function testTeamFillFlushesBeforeEmitAndLocks() {
 	const component = await loadVueComponent(teamFillComponentPath)
 	const component = await loadVueComponent(teamFillComponentPath)
 	const flushDeferred = createDeferred()
 	const flushDeferred = createDeferred()
@@ -1492,6 +1511,7 @@ async function main() {
 	await testFileActionsWaitForCurrentListAndDocumentContext()
 	await testFileActionsWaitForCurrentListAndDocumentContext()
 	await testSameTeamRefreshFailurePreservesExistingFilesAndCount()
 	await testSameTeamRefreshFailurePreservesExistingFilesAndCount()
 	await testTeamWebsiteInputExposesTheAuthoritativeLengthLimit()
 	await testTeamWebsiteInputExposesTheAuthoritativeLengthLimit()
+	await testTeamFillRendersBackgroundFilesAndBusyState()
 	await testTeamFillFlushesBeforeEmitAndLocks()
 	await testTeamFillFlushesBeforeEmitAndLocks()
 	await testCreatedTeamResumeAndSubmitLock()
 	await testCreatedTeamResumeAndSubmitLock()
 	await testCreatedTeamNavigationIsAwaitableAndResumable()
 	await testCreatedTeamNavigationIsAwaitableAndResumable()