Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

fixes broken builds for blue team #120

Merged
merged 3 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache
uses: actions/setup-node@v3
Expand All @@ -124,10 +126,6 @@ jobs:
name: moon-cache
path: .moon/cache

- run: |
git fetch
git config pull.rebase true
git pull origin $GITHUB_HEAD_REF
- run: yarn install --immutable --inline-builds
- name: 'Blue Team Tests - Chrome'
uses: cypress-io/github-action@v5.3.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ describe('Mitre attack tests', () => {
cy.get('[cy-test=expand]').eq(1).click();

cy.get('[cy-test=mitre-attack-link]')
.eq(0)
.invoke('text')
.then((mitre1) => {
cy.get('[cy-test=mitre-attack-link]').eq(0).should('have.attr', 'href').and('include', mitre1);
});
.then(($el) => {
return Cypress._.map($el, 'innerText');
})
.should('deep.equal', ['T1003: OS Credential Dumping', 'T1093: Process Hollowing']);
});

after(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Multi-Command Comments', () => {
cy.get('[cy-test=comments-view]').should('contain', comment).and('contain', tag);
cy.clickPresentationMode();
cy.get('[cy-test=favorited]').click();
cy.get('[cy-test=presentation-item-root]').should('contain', comment).and('contain', tag);
cy.get('[cy-test=presentation-root]').should('contain', comment).and('contain', tag);
});

it('Add a new command to the comment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ describe('Timeline tests', () => {
});

after(() => {
// cy.deleteCampaignGraphQL(camp);
cy.deleteCampaignGraphQL(camp);
cy.deleteCampaignGraphQL(camp2);
});
});