Browse Source

chore(cypress): make dropdown selection consistent

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3569/head
Pranav C 2 years ago
parent
commit
194da8d1a2
  1. 1
      packages/nc-gui/components/smartsheet-toolbar/SortListMenu.vue
  2. 2
      scripts/cypress/support/page_objects/mainPage.js

1
packages/nc-gui/components/smartsheet-toolbar/SortListMenu.vue

@ -73,6 +73,7 @@ watch(
:label="$t('labels.operation')"
@click.stop
@select="saveOrUpdate(sort, i)"
dropdown-class-name="sort-dir-dropdown"
>
<a-select-option
v-for="(option, j) in getSortDirectionOptions(columnByID[sort.fk_column_id]?.uidt)"

2
scripts/cypress/support/page_objects/mainPage.js

@ -322,7 +322,7 @@ export class _mainPage {
cy.wait(500)
cy.get(".nc-sort-dir-select div").first().click();
cy.wait(500)
cy.get('.ant-select-dropdown:visible').find(`.ant-select-item`).contains(criteria).should('exist').click();
cy.get('.sort-dir-dropdown.ant-select-dropdown:visible').find(`.ant-select-item`).contains(criteria).should('exist').click();
cy.wait(500)
cy.get(".nc-sort-menu-btn").click();
cy.wait(500)

Loading…
Cancel
Save