From ed142ab27b573c87c3f1e951b72dfdc7c4f28e0d Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 22 Feb 2024 23:03:43 +0800 Subject: [PATCH] update declare types --- tests/cypress/support/commands.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cypress/support/commands.ts b/tests/cypress/support/commands.ts index afda4fc..74a2ad0 100644 --- a/tests/cypress/support/commands.ts +++ b/tests/cypress/support/commands.ts @@ -4,15 +4,15 @@ import '@testing-library/cypress/add-commands' declare global { namespace Cypress { interface Chainable { - LoginWithPassword(username: string, password: string): Chainable + LoginWithPassword(username: string, password: string): Chainable PrepareForGame(): Chainable InitTerminal(): Chainable - typeInCommand(command: string): Chainable + typeInCommand(command: string): Chainable getQuestInfo(id: string): Chainable> - checkHint(index: number, total: number): Chainable // 修改類型 + checkHint(index: number, total: number): Chainable // 修改類型 checkTaskInit(): Chainable waitUntilActive(last?: boolean): Chainable // 注意小寫boolean,並且變量名應該是小寫 - checkPending(): Chainable + checkPending(): Chainable CompleteStageWithCommands(stagename: string): Chainable CheckTextElement( id: string,