How can I continuo action from previous test it() in one .spec file? #22177
Unanswered
hanh202
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm write a scenario which have more action( each action is a testcase it()). However, I can inherit previous action between test it(). How can I do that? Please help me.
The code like that:
describe('scenario', () => {
before(() => {
// visit a login page
});
it('testcase 1', () => {
// input username
});
it('testcase 2', () => {
// input password
});
it('testcase 3', () => {
// click submit
});
it('testcase 4', () => {
// check result
});
});
Beta Was this translation helpful? Give feedback.
All reactions