Skip to content

Commit

Permalink
fix: cypress test (opensearch-project#116)
Browse files Browse the repository at this point in the history
* fix: cypress test

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: some unit test

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: unit test error group 2

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: unit test group 4

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: bootstrap error

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: cypress url error

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: functional test

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: route error

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: failed test

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: test link

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: nuse navigateToApp when clickOpenSearchDashboardsSavedObjects

* feat: direct jump to specific page

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: snapshot

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: always register all library under library category

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update management related path

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: doMock error

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update snapshot

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe authored and ruanyl committed Sep 15, 2023
1 parent c1d6ec2 commit 1f3582a
Show file tree
Hide file tree
Showing 67 changed files with 3,764 additions and 634 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cypress_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
path: ${{ env.FTR_PATH }}
repository: opensearch-project/opensearch-dashboards-functional-test
# revert this to '${{ github.base_ref }}'
ref: 'main'
ref: 'workspace'

- name: Get Cypress version
id: cypress_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const loginPage = new LoginPage(cy);

describe('verify the advanced settings are saved', () => {
beforeEach(() => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
miscUtils.visitPage('app/settings');
loginPage.enterUserName('admin');
loginPage.enterPassword('admin');
loginPage.submit();
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/with-security/helpers/generate_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const loginPage = new LoginPage(cy);

describe('Generating BWC test data with security', () => {
beforeEach(() => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
miscUtils.visitPage('app/settings');
loginPage.enterUserName('admin');
loginPage.enterPassword('admin');
loginPage.submit();
Expand All @@ -29,7 +29,7 @@ describe('Generating BWC test data with security', () => {
});

it('adds advanced settings', () => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
miscUtils.visitPage('app/settings');
cy.get('[data-test-subj="advancedSetting-editField-theme:darkMode"]').click();
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').type(
'{selectAll}4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const miscUtils = new MiscUtils(cy);

describe('verify the advanced settings are saved', () => {
beforeEach(() => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
miscUtils.visitPage('app/settings');
});

it('the dark mode is on', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Generating BWC test data without security', () => {
miscUtils.visitPage('app');
});
it('adds advanced settings', () => {
miscUtils.visitPage('app/management/opensearch-dashboards/settings');
miscUtils.visitPage('app/settings');
cy.get('[data-test-subj="advancedSetting-editField-theme:darkMode"]').click();
cy.get('[data-test-subj="advancedSetting-editField-timeline:max_buckets"]').type(
'{selectAll}4'
Expand Down
Loading

0 comments on commit 1f3582a

Please sign in to comment.