Skip to content

Commit

Permalink
test: add hidden id in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Torrent committed Jan 12, 2022
1 parent 77ce297 commit 0ca684e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
cache: 'yarn'

- name: install yarn
# avoid checksum errors with github packages
# avoid checksum errors with github packages
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: cypress run
Expand All @@ -23,6 +23,7 @@ jobs:
REACT_APP_API_HOST: ${{ secrets.REACT_APP_API_HOST }}
REACT_APP_AUTHENTICATION_HOST: http://localhost:3000
REACT_APP_NODE_ENV: test
REACT_APP_HIDDEN_ITEM_TAG_ID: 12345678-1234-1234-1234-123456789012
with:
install: false
config: baseUrl=http://localhost:3000
Expand Down
4 changes: 2 additions & 2 deletions cypress/fixtures/items.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SETTINGS } from '../../src/config/constants';
import { HIDDEN_ITEM_TAG_ID, SETTINGS } from '../../src/config/constants';
import { ITEM_TYPES, PERMISSION_LEVELS } from '../../src/enums';
import { buildItemLoginSchemaExtra } from '../../src/utils/itemExtra';
import {
Expand Down Expand Up @@ -616,7 +616,7 @@ export const HIDDEN_ITEM = {
},
{
id: 'ecbfbd2a-5688-12eb-ae93-0242ac130001',
tagId: 'b5373e38-e89b-4dc7-b4b9-fd3601504467',
tagId: HIDDEN_ITEM_TAG_ID,
itemPath: 'ecafbd2a_5688_11eb_ae93_0242ac130001',
},
],
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/item/hide/hideItem.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { TABLE_ITEM_RENDER_TIME } from '../../../support/constants';
import { ITEM_LAYOUT_MODES } from '../../../../src/enums';

const hiddenTagId = 'hiddenTagId';
const hiddenTagId = '12345678-1234-1234-1234-123456789012';

const toggleHideButton = (itemId) => {
cy.wait(TABLE_ITEM_RENDER_TIME);
Expand Down

0 comments on commit 0ca684e

Please sign in to comment.