Skip to content

Commit

Permalink
fix: check uptate data after item update
Browse files Browse the repository at this point in the history
  • Loading branch information
gergoabraham committed Aug 2, 2024
1 parent f064af2 commit 653f6fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe('Artifacts pages', { tags: ['@ess', '@serverless', '@skipInServerlessMK
// Submit edit artifact form
cy.getByTestSubj(`${testData.pagePrefix}-flyout-submitButton`).click();

for (const checkResult of testData.create.checkResults) {
for (const checkResult of testData.update.checkResults) {
cy.getByTestSubj(checkResult.selector).should('have.text', checkResult.value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const getArtifactsListTestsData = (): ArtifactsFixtureType[] => [
{
selector: 'trustedAppsListPage-card-criteriaConditions',
value:
'OSIS WindowsAND file.pathis one of\nc:\\randomFolder\\randomFile.exe\nc:\\randomFolder\\randomFile2.exe',
' OSIS WindowsAND process.executable.caselessIS c:\\randomFolder\\randomFile.exe, c:\\randomFolder\\randomFile2.exe',
},
{
selector: 'trustedAppsListPage-card-header-title',
Expand Down Expand Up @@ -281,10 +281,10 @@ export const getArtifactsListTestsData = (): ArtifactsFixtureType[] => [
list_id: ENDPOINT_ARTIFACT_LISTS.eventFilters.id,
entries: [
{
field: 'destination.ip',
field: 'agent.id',
operator: 'included',
type: 'match',
value: '1.2.3.4',
value: 'mr agent',
},
],
os_types: ['windows'],
Expand Down Expand Up @@ -382,7 +382,7 @@ export const getArtifactsListTestsData = (): ArtifactsFixtureType[] => [
{
selector: 'blocklistPage-card-criteriaConditions',
value:
'OSIS WindowsAND file.path.caselessis one of\nc:\\randomFolder\\randomFile.exe\nc:\\randomFolder\\randomFile2.exe',
' OSIS WindowsAND file.path.caselessis one of c:\\randomFolder\\randomFile.exe c:\\randomFolder\\randomFile2.exe',
},
{
selector: 'blocklistPage-card-header-title',
Expand All @@ -404,16 +404,10 @@ export const getArtifactsListTestsData = (): ArtifactsFixtureType[] => [
list_id: ENDPOINT_ARTIFACT_LISTS.blocklists.id,
entries: [
{
field: 'file.Ext.code_signature',
entries: [
{
field: 'subject_name',
value: ['wegwergwegw'],
type: 'match_any',
operator: 'included',
},
],
type: 'nested',
field: 'file.hash.sha256',
value: ['a4370c0cf81686c0b696fa6261c9d3e0d810ae704ab8301839dffd5d5112f476'],
type: 'match_any',
operator: 'included',
},
],
os_types: ['windows'],
Expand Down Expand Up @@ -484,7 +478,7 @@ export const getArtifactsListTestsData = (): ArtifactsFixtureType[] => [
checkResults: [
{
selector: 'hostIsolationExceptionsListPage-card-criteriaConditions',
value: 'OSIS Windows, Linux, Mac\nAND destination.ipIS 2.2.2.2/24',
value: ' OSIS Windows, Linux, MacAND destination.ipIS 2.2.2.2/24',
},
{
selector: 'hostIsolationExceptionsListPage-card-header-title',
Expand Down

0 comments on commit 653f6fc

Please sign in to comment.