bad order (place) if is used hooks
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- javascript, node.js
- Domínio
- testing
Direção de pesquisa
Reproduza o relatório com os helper hooks mostrados usando npx codeceptjs run --steps e o mesmo comando sem --steps. Compare a ordem no console para _beforeSuite, _beforeStep, _before, _passed e _failed; considera-se concluído quando a saída do hook passed aparece antes do status de sucesso, enquanto a ordem dos outros hooks permanece correta.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
CodeceptJS v3.1.3
I try create file with helper, thats contains:
_beforeSuite() {
console.log('This text must be before feature string, but is after feature string')
}
_beforeStep() {
console.log('This text must be before each step and page object')
}
_before() {
console.log('This text must be before scenario string, but is after scenario string')
}
_passed() {
console.log('This text must be before OK status, but is after OK status')
}
_failed() {
console.log('This text must be before fail status and is before status - working correctly')
}
when i run codecept as
npx codeceptjs run --steps
i got in console:
CodeceptJS v3.1.3
Using test root "C:_git\sandbox"
Typescript Example1 --
This text must be before feature string, but is after feature string
test something
This text must be before scenario string, but is after scenario string
From homePage neco
Login Page
This text must be before each step and page object
homePage: goToHome
I am on page "/"
This text must be before each step and page object
I print message "Helper message Pavel"
Helper message Pavel
This text must be before each step and page object
loginPage: link
I wait for visible "body"
This text must be before each step and page object
I print helpers
Helpers enabled hokus [ 'Playwright', 'CustomHelper', 'HokusHelper' ]
This text must be before each step and page object
I fill field "user_email", "something@totest.com"
This text must be before each step and page object
I wait 2
√ OK in 5177ms
This text must be before OK status, but is after OK status
po kazdym scenari (describe)
test something2
This text must be before scenario string, but is after scenario string
From homePage neco
Login Page2
This text must be before each step and page object
homePage: goToHome
I am on page "/"
This text must be before each step and page object
I print message "Helper message Pavel2"
Helper message Pavel2
This text must be before each step and page object
loginPage: link
I wait for visible "body"
This text must be before each step and page object
I print helpers
Helpers enabled hokus [ 'Playwright', 'CustomHelper', 'HokusHelper' ]
This text must be before each step and page object
I fill field "user_email", "something@totest2.com"
This text must be before each step and page object
I wait 2
This text must be before each step and page object
I see "pokus"
This text must be before fail status and is before status - working correctly
× FAILED in 8761ms
when runing without --steps
Typescript Example1 --
This text must be before feature string, but is after feature string
This text must be before scenario string, but is after scenario string
From homePage neco
Login Page
This text must be before each step and page object
This text must be before each step and page object
Helper message Pavel
This text must be before each step and page object
This text must be before each step and page object
Helpers enabled hokus [ 'Playwright', 'CustomHelper', 'HokusHelper' ]
This text must be before each step and page object
This text must be before each step and page object
√ test something in 5294ms
This text must be before OK status, but is after OK status
po kazdym scenari (describe)
This text must be before scenario string, but is after scenario string
From homePage neco
Login Page2
This text must be before each step and page object
This text must be before each step and page object
Helper message Pavel2
This text must be before each step and page object
This text must be before each step and page object
Helpers enabled hokus [ 'Playwright', 'CustomHelper', 'HokusHelper' ]
This text must be before each step and page object
This text must be before each step and page object
This text must be before each step and page object
This text must be before fail status and is before status - working correctly
× test something2 in 8677ms
I mean, console.logs used in hooks, must be visible before features and scenario in console. And _failed() working correctly, but _passed() is not...
- Linguagem predominante
- JavaScript
- Estrelas
- 4.2k
- Forks
- 756
- Merge médio
- 2d 9h
- PRs com merge (30d)
- 16
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codeceptjs/CodeceptJS
-
stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
codeceptjs/CodeceptJS#5420 · 1 comentário ·
-
stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
codeceptjs/CodeceptJS#5358 · 1 comentário ·
-
stale
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
codeceptjs/CodeceptJS#4958 · 10 comentários · 2 reações ·
-
stale
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
codeceptjs/CodeceptJS#4778 · 3 comentários ·
-
stale
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
codeceptjs/CodeceptJS#5618 · 1 comentário ·
Todas as issues de codeceptjs/CodeceptJS
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
Theme loads third-party resources on every page (jsdelivr web font, cdnjs Font Awesome) – GDPR Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
nightscout/nocturne#1414 ·
-
bug v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
modelcontextprotocol/inspector#2458 · 1 comentário ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
carbon-design-system/ibm-products#9907 ·