-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added result object, improved transport of tests * fixed setting name for test * fixed workers tests * improved handling information between workers and main process * fixed tests * added result to typings * fixed printing steps * fixed def & failing tests * fixing timeout errors * fixed mocha hooks, analyze plugin, added custom reporter tests * improved prompt for analyze plugin * refactored timeouts to fix tests * fixed saving screenshot file * fixed step sections * fixed tests for timeout errors * added change fot pageInfo plugin * fixed timeout tests * fixed timeout tests with retries --------- Co-authored-by: DavertMik <[email protected]>
- Loading branch information
Showing
58 changed files
with
1,661 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
// / <reference path="./steps.d.ts" /> | ||
Feature('GitHub'); | ||
Feature('GitHub') | ||
|
||
Before(({ I }) => { | ||
I.amOnPage('https://github.com'); | ||
}); | ||
I.amOnPage('https://github.com') | ||
I.see('GitLab') | ||
}) | ||
|
||
xScenario('test ai features', ({ I }) => { | ||
I.amOnPage('https://getbootstrap.com/docs/5.1/examples/checkout/'); | ||
pause(); | ||
}); | ||
I.amOnPage('https://getbootstrap.com/docs/5.1/examples/checkout/') | ||
}) | ||
|
||
Scenario('Incorrect search for Codeceptjs', ({ I }) => { | ||
I.fillField('.search-input', 'CodeceptJS'); | ||
I.pressKey('Enter'); | ||
I.waitForElement('[data-testid=search-sub-header]', 10); | ||
I.see('Supercharged End 2 End Testing'); | ||
}); | ||
I.fillField('.search-input', 'CodeceptJS') | ||
I.pressKey('Enter') | ||
I.waitForElement('[data-testid=search-sub-header]', 10) | ||
I.see('Supercharged End 2 End Testing') | ||
}) | ||
|
||
Scenario('Visit Home Page @retry', async ({ I }) => { | ||
// .retry({ retries: 3, minTimeout: 1000 }) | ||
I.retry(2).see('GitHub'); | ||
I.retry(3).see('ALL'); | ||
I.retry(2).see('IMAGES'); | ||
}); | ||
I.retry(2).see('GitHub') | ||
I.retry(3).see('ALL') | ||
I.retry(2).see('IMAGES') | ||
}) | ||
|
||
Scenario('search @grop', { timeout: 6 }, ({ I }) => { | ||
I.amOnPage('https://github.com/search'); | ||
I.amOnPage('https://github.com/search') | ||
const a = { | ||
b: { | ||
c: 'asdasdasd', | ||
}, | ||
}; | ||
} | ||
const b = { | ||
users: { | ||
admin: { | ||
|
@@ -42,35 +42,38 @@ Scenario('search @grop', { timeout: 6 }, ({ I }) => { | |
other: (world = '') => `Hello ${world}`, | ||
}, | ||
urls: {}, | ||
}; | ||
I.fillField('Search GitHub', 'CodeceptJS'); | ||
} | ||
I.fillField('Search GitHub', 'CodeceptJS') | ||
// pause({ a, b }); | ||
I.pressKey('Enter'); | ||
I.wait(3); | ||
I.pressKey('Enter') | ||
I.wait(3) | ||
// pause(); | ||
I.see('Codeception/CodeceptJS', locate('.repo-list .repo-list-item').first()); | ||
}); | ||
I.see('Codeception/CodeceptJS', locate('.repo-list .repo-list-item').first()) | ||
}) | ||
|
||
Scenario('signin @sign', { timeout: 6 }, ({ I, loginPage }) => { | ||
I.say('it should not enter'); | ||
loginPage.login('[email protected]', '123456'); | ||
I.see('Incorrect username or password.', '.flash-error'); | ||
}).tag('normal').tag('important').tag('@slow'); | ||
I.say('it should not enter') | ||
loginPage.login('[email protected]', '123456') | ||
I.see('Incorrect username or password.', '.flash-error') | ||
}) | ||
.tag('normal') | ||
.tag('important') | ||
.tag('@slow') | ||
|
||
Scenario('signin2', { timeout: 1 }, ({ I, Smth }) => { | ||
Smth.openAndLogin(); | ||
I.see('Incorrect username or password.', '.flash-error'); | ||
}); | ||
Smth.openAndLogin() | ||
I.see('Incorrect username or password.', '.flash-error') | ||
}) | ||
|
||
Scenario('register', ({ I }) => { | ||
within('.js-signup-form', () => { | ||
I.fillField('user[login]', 'User'); | ||
I.fillField('user[email]', '[email protected]'); | ||
I.fillField('user[password]', '[email protected]'); | ||
I.fillField('q', 'aaa'); | ||
I.click('button'); | ||
}); | ||
I.see('There were problems creating your account.'); | ||
I.click('Explore'); | ||
I.seeInCurrentUrl('/explore'); | ||
}); | ||
I.fillField('user[login]', 'User') | ||
I.fillField('user[email]', '[email protected]') | ||
I.fillField('user[password]', '[email protected]') | ||
I.fillField('q', 'aaa') | ||
I.click('button') | ||
}) | ||
I.see('There were problems creating your account.') | ||
I.click('Explore') | ||
I.seeInCurrentUrl('/explore') | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.