Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristina1788 committed Jun 14, 2024
1 parent 331782a commit c1ecc4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/feebback.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test.describe('Feedback', () => {
contentSystem2 = "Hi friend message 2";
contentUser1 = "Can you help me on message 1";
contentUser2 = "Can you help me on message 2";
await login.openUrl("/");
await login.openUrl(config.BASE_URL+'');
await homePage.clickSignUpBtn();
await signUpPage.signUpAccountStep1(email, UserInfo.password, userName);
await signUpPage.signUpAccountStep2("TESTPROJECT","TESTORG", UserInfo.companySize, UserInfo.option);
Expand Down Expand Up @@ -110,7 +110,7 @@ test.describe('Feedback', () => {
const logsPage = new LogsPage(page);
const loginPage = new LoginPage(page);

await loginPage.openUrl("/");
await loginPage.openUrl(config.BASE_URL+'');
await loginPage.login(email, UserInfo.password);

await commonPage.clickMenu('Logs');
Expand All @@ -135,7 +135,7 @@ test.describe('Feedback', () => {
const logsPage = new LogsPage(page);
const loginPage = new LoginPage(page);

await loginPage.openUrl("/");
await loginPage.openUrl(config.BASE_URL+'');
await loginPage.login(email, UserInfo.password);

await commonPage.clickMenu('Logs');
Expand Down
2 changes: 1 addition & 1 deletion e2e/helpers/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const config = {
BASE_URL: process.env.APP_URL,
BASE_URL: process.env.APP_URL || 'http://127.0.0.1:8080',
OPENAI_API_KEY : process.env.OPENAI_API_KEY,
API_URL: process.env.LUNARY_API_URL
};
Expand Down
2 changes: 1 addition & 1 deletion e2e/smokeTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.describe('Smoke test', () => {
const login = new LoginPage(page);
userName =uniqueStr('test');
email = uniqueStr('test') + '@example.com';
await login.openUrl("/");
await login.openUrl(config.BASE_URL+'');
});

test("Verify search user", async () => {
Expand Down

0 comments on commit c1ecc4b

Please sign in to comment.