Skip to content

Commit

Permalink
test:fixed run conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 5, 2024
1 parent e8ba1e0 commit ae813c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions webapp/e2e/steps/about.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,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 @@ -24,7 +24,7 @@ defineFeature(feature, test => {

test("A logged user wants to see the about screen of the webpage", ({given,when,and,then}) => {

let username = "test";
let username = "t.about";

given("A logged user in the main menu", async () => {
await registerUserFromRootDirectory(username,page)
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/login_positive.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let browser;


defineFeature(feature, test => {
let username = "t.regis.pos";
let username = "t.log.pos";
let email = username + "@email.com";
let password = username + "psw";

Expand All @@ -29,7 +29,7 @@ defineFeature(feature, test => {
await registerUserFromRootDirectory(username, page);

// Logging it out
await logOutUser(page)
await logOutUser(page);

}, 120000);

Expand Down

0 comments on commit ae813c4

Please sign in to comment.