Skip to content

Commit

Permalink
fix: register testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 1, 2024
1 parent c4a3bf2 commit ef45675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
testMatch: ["**/steps/login_positive.steps.js"],
testMatch: ["**/steps/register_positive_form.steps.js"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
testTimeout: 30000
}
8 changes: 3 additions & 5 deletions webapp/e2e/steps/register_positive_form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ defineFeature(feature, test => {

beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 100 });
? await puppeteer.launch({ ignoreHTTPSErrors: true})
: await puppeteer.launch({ headless: false, slowMo: 100, ignoreHTTPSErrors: true });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 10000 })
Expand All @@ -31,9 +31,7 @@ defineFeature(feature, test => {
// Convert bytes to hex
let hexString = randomBytes.toString('hex');
// Take the first 16 characters
let randomHash = hexString.substring(0, 20);


let randomHash = hexString.substring(0, 4);

let username = "test" + randomHash
let user = username + "@email.com"
Expand Down

0 comments on commit ef45675

Please sign in to comment.