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

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sang2925 committed Mar 15, 2023
1 parent d31fb14 commit f6b5b9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 238 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

- run: yarn install --immutable --inline-builds
- name: Red Team Tests - Chrome v${{ matrix.node }}
uses: cypress-io/github-action@v5.2.0
uses: cypress-io/github-action@v5.3.1
with:
tag: node-${{ matrix.node }}
start: yarn start:dev
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
git pull origin $GITHUB_HEAD_REF
- run: yarn install --immutable --inline-builds
- name: 'Blue Team Tests - Chrome'
uses: cypress-io/github-action@v5.2.0
uses: cypress-io/github-action@v5.3.1
with:
tag: node-${{ matrix.node }}
start: yarn start:blue
Expand Down
194 changes: 0 additions & 194 deletions .github/workflows/trigger.yml

This file was deleted.

43 changes: 1 addition & 42 deletions applications/redeye-e2e/src/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,29 +123,7 @@ Cypress.Commands.add('favoriteComment', (index) => {
cy.get('[cy-test=fav-comment]').should('be.visible').eq(index).click({ force: true });
});

//ADD NEW COMMENT WITH IF-ELSE LOGIC
// Cypress.Commands.add('addNewComment', (index, comment, tag) => {
// cy.get('[cy-test=add-comment]')
// .eq(index)
// .then(($add) => {
// if ($add.is(':visible')) {
// cy.log('NOT NEW COMMENT ');
// cy.wrap($add).click();
// cy.wait('@tags');
// cy.get('[cy-test=add-new-comment]').click();
// cy.get('[cy-test=comment-input]').type(comment).type('{enter}');
// cy.addTags(tag);
// cy.get('[cy-test=save-comment]').click();
// cy.wait('@addCommandGroupAnnotation');
// } else {
// cy.log('NEW COMMENT ');
// cy.addComment(0, comment);
// cy.addTags(tag);
// cy.get('[cy-test=save-comment]').click();
// cy.wait('@addCommandGroupAnnotation');
// }
// });
// });
//ADD NEW COMMENT
Cypress.Commands.add('addNewComment', (index, comment, tag) => {
cy.get('[cy-test=command-info]')
.eq(index)
Expand Down Expand Up @@ -217,25 +195,6 @@ Cypress.Commands.add('editExistingComment', (index, editedCommentText) => {
cy.wait('@updateAnnotation');
});

// // Delete files from the Downloads folder
// Cypress.Commands.add('deleteDownloadsFolderContent', () => {
// cy.task('readdir', { dirPath: 'cypress/downloads' }).then((arr) => {
// if (arr.length > 0) {
// cy.log('Found ' + arr.length + ' file(s) in ' + 'cypress/downloads' + ':' + '\n' + arr);
// cy.task('deleteDownloads', { dirPath: 'cypress/downloads' });
// cy.task('readdir', { dirPath: 'cypress/downloads' }).then((newArr) => {
// if (newArr.length == 0) {
// cy.log('Cleared contents of ' + 'cypress/downloads');
// } else {
// throw new Error('Did not clear all files from ' + 'cypress/downloads');
// }
// });
// } else {
// cy.log('No files were found to delete in ' + 'cypress/downloads');
// }
// });
// });

// Reply to a comment (only adds text, no tags)
Cypress.Commands.add('replyToComment', (index, cmt) => {
cy.get('[cy-test=reply]').eq(index).click();
Expand Down

0 comments on commit f6b5b9f

Please sign in to comment.