forked from stakwork/sphinx-tribes-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stakwork#521 from AbdulWahab3181/feature/add-archi…
…tecture-to-feature Feature/add architecture to feature
- Loading branch information
Showing
62 changed files
with
1,582 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Build | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
jobs: | ||
build: | ||
name: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Cypress Tests | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
|
||
jobs: | ||
cypress: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Eslint | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
jobs: | ||
eslint: | ||
name: eslint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Prettier | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
jobs: | ||
|
||
prettier: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Tests | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- "*" | ||
jobs: | ||
test-jest: | ||
name: Jest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
describe('Add feature To Workspace', () => { | ||
it('Creating A Workspace', () => { | ||
cy.login('carol'); | ||
cy.wait(1000); | ||
|
||
const WorkSpaceName = 'Workspace Feature'; | ||
|
||
const workspace = { | ||
loggedInAs: 'carol', | ||
name: WorkSpaceName, | ||
description: 'We are testing out our workspace feature', | ||
website: 'https://community.sphinx.chat', | ||
github: 'https://github.com/stakwork/sphinx-tribes-frontend' | ||
}; | ||
|
||
cy.create_workspace(workspace); | ||
cy.wait(1000); | ||
|
||
cy.contains(workspace.name).contains('Manage').click(); | ||
cy.wait(1000); | ||
|
||
cy.get('[data-testid="mission-link"]') | ||
.invoke('show') | ||
.then(($link: JQuery<HTMLElement>) => { | ||
const modifiedHref = $link.attr('href'); | ||
cy.wrap($link).invoke('removeAttr', 'target'); | ||
cy.wrap($link).click(); | ||
cy.url().should('include', modifiedHref); | ||
}); | ||
cy.wait(1000); | ||
|
||
cy.contains('No mission yet'); | ||
cy.contains('No tactics yet'); | ||
|
||
cy.get('[data-testid="new-feature-btn"]').click(); | ||
cy.wait(1000); | ||
|
||
cy.contains('Add New Feature'); | ||
|
||
const newFeature = 'This is my Feature'; | ||
cy.get('[data-testid="feature-input"]').type(newFeature); | ||
cy.get('[data-testid="add-feature-btn"]').click(); | ||
cy.wait(1000); | ||
|
||
cy.contains(newFeature).should('exist', { timeout: 3000 }); | ||
|
||
cy.logout('carol'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
describe('Update feature To Workspace', () => { | ||
it('Updating A Workspace Feature', () => { | ||
cy.login('carol'); | ||
cy.wait(1000); | ||
|
||
const WorkSpaceName = 'WS Feature Update'; | ||
|
||
const workspace = { | ||
loggedInAs: 'carol', | ||
name: WorkSpaceName, | ||
description: 'We are testing out our workspace feature', | ||
website: 'https://community.sphinx.chat', | ||
github: 'https://github.com/stakwork/sphinx-tribes-frontend' | ||
}; | ||
|
||
cy.create_workspace(workspace); | ||
cy.wait(1000); | ||
|
||
cy.contains(workspace.name).contains('Manage').click(); | ||
cy.wait(1000); | ||
|
||
cy.get('[data-testid="mission-link"]') | ||
.invoke('show') | ||
.then(($link: JQuery<HTMLElement>) => { | ||
const modifiedHref = $link.attr('href'); | ||
cy.wrap($link).invoke('removeAttr', 'target'); | ||
cy.wrap($link).click(); | ||
cy.url().should('include', modifiedHref); | ||
}); | ||
cy.wait(1000); | ||
|
||
cy.contains('No mission yet'); | ||
cy.contains('No tactics yet'); | ||
|
||
cy.get('[data-testid="new-feature-btn"]').click(); | ||
cy.wait(1000); | ||
|
||
cy.contains('Add New Feature'); | ||
|
||
const newFeature = 'A new Feature'; | ||
cy.get('[data-testid="feature-input"]').type(newFeature); | ||
cy.get('[data-testid="add-feature-btn"]').click(); | ||
cy.wait(1000); | ||
|
||
cy.contains(newFeature).should('exist', { timeout: 3000 }); | ||
cy.wait(1000); | ||
|
||
cy.get('[data-testid="architecture-option-btn"]').click(); | ||
cy.get('[data-testid="architecture-edit-btn"]').click(); | ||
|
||
const updatedFeature = 'Feature Architecture'; | ||
cy.get('[data-testid="architecture-textarea"]').type(updatedFeature); | ||
cy.get('[data-testid="architecture-update-btn"]').click(); | ||
cy.wait(1000); | ||
|
||
cy.contains(updatedFeature).should('exist', { timeout: 1000 }); | ||
|
||
cy.logout('carol'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/pages/leaderboard/leaderboardItem/__tests__/LeaerboardItem.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.