Skip to content

Commit

Permalink
ADM-833: [frontend] fix: fix env error (#1341)
Browse files Browse the repository at this point in the history
* ADM-833:[frontend]feat:add e2e unhappy path scenarios

ADM-833: [frontend] add e2e test scenarios

ADM-833: [frontend] fix: fix code style error

ADM-833: [frontend] feat: add unhappy path scenoria

ADM-833: [frontend] feat: optimize add and remove new pipeline,add unhappy path template

ADM-833: [frontend] feat: optimize remove new pipeline,unhappy path template

ADM-833: [frontend] feat: optimize remove new pipeline,unhappy path template

ADM-833:[frontend]feat:merge unhappy path scenario

ADM-833: [frontend] update: update  e2e test scenarios

ADM-833: [frontend] fix: fix code style error

ADM-833: [frontend] update: update  e2e test scenarios

ADM-833: [frontend] update: update  e2e test scenarios

ADM-833: [frontend] fix: fix e2e test error

ADM-833:[frontend]feat:distinguish major and unhappy path test in local environment

ADM-833: [frontend] feat: sperate major and all

ADM-833[frontend]feat:change branch invalid error message

ADM-833: [frontend] fix: fix index.ts error

ADM-833: [frontend] fix: remove the log file

ADM-833: [frontend] fix: fix conflict with main branch

ADM-833: [frontend] fix: revert readme

ADM-833: [frontend] fix: remove log file

ADM-833: [frontend] fix: modify .gitignore, add omit logs

* ADM-833 fix path

* ADM-833: [frontend] fix: update the spec location

* ADM-833: [frontend] fix: fix daterange error

* ADM-833: [frontend] fix: fix review error

* ADM-833: [frontend] fix: fix review error

* ADM-833: [frontend] fix: fix env error

---------

Co-authored-by: YaoZhang-Daniel <zyao1987@163.com>
Co-authored-by: guzhongren <guzhongren@live.cn>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent a18fb67 commit eed90dc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 129 deletions.
1 change: 0 additions & 1 deletion frontend/e2e/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ E2E_TOKEN_JIRA=""
E2E_TOKEN_GITHUB=""
E2E_TOKEN_BUILD_KITE=""
E2E_TOKEN_FLAG_AS_BLOCK_JIRA=""
E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILD_KITE=""
TZ='PRC'

This file was deleted.

15 changes: 0 additions & 15 deletions frontend/e2e/specs/side-path/unhappy-path.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@ test.beforeAll(async () => {
await clearTempDir();
});

test('Error UI should be pipeline with no org config when pipeline token without org', async ({
homePage,
configStep,
metricsStep,
}) => {
await homePage.goto();

await homePage.importProjectFromFile('../fixtures/input-files/pipeline-no-org-config-file.json');
await configStep.verifyAllConfig();
await configStep.goToMetrics();
await metricsStep.waitForShown();

await metricsStep.checkErrorMessageForPipelineSettings();
});

test('unhappy path when import file', async ({ homePage, configStep, metricsStep, reportStep }) => {
const dateRange = {
startDate: format(modifiedCorrectProjectFromFile.dateRange.startDate),
Expand Down
8 changes: 0 additions & 8 deletions frontend/scripts/generate-config-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ cat ./e2e/fixtures/input-files/add-flag-as-block-config-file.template.json > "${
sed -i -e "s/<E2E_TOKEN_FLAG_AS_BLOCK_JIRA>/${E2E_TOKEN_FLAG_AS_BLOCK_JIRA}/g" "${import_file_name}"
echo "Successfully generate ${import_file_name}"

import_file_name='./e2e/fixtures/input-files/pipeline-no-org-config-file.json'
echo "Start to generate ${import_file_name}"
cat ./e2e/fixtures/input-files/pipeline-no-org-config-file.template.json > "${import_file_name}"
sed -i -e "s/<E2E_TOKEN_JIRA>/${E2E_TOKEN_JIRA}/g" "${import_file_name}"
sed -i -e "s/<E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILD_KITE>/${E2E_TOKEN_PIPELINE_NO_ORG_CONFIG_BUILD_KITE}/g" "${import_file_name}"
sed -i -e "s/<E2E_TOKEN_GITHUB>/${E2E_TOKEN_GITHUB}/g" "${import_file_name}"
echo "Successfully generate ${import_file_name}"

import_file_name='./e2e/fixtures/input-files/unhappy-path-config-file.json'
echo "Start to generate ${import_file_name}"
cat ./e2e/fixtures/input-files/unhappy-path-config-file.template.json > "${import_file_name}"
Expand Down

0 comments on commit eed90dc

Please sign in to comment.