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,