Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aneehss committed Apr 2, 2021
0 parents commit 6f8e794
Show file tree
Hide file tree
Showing 10,542 changed files with 631,927 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
46 changes: 46 additions & 0 deletions cypress/integration/IteraCourse/task1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/// <reference types="Cypress" />

describe('jira clone', () => {
before(() =>{
cy.visit('https://jira-clone.mad.itera.no/project/board')

})


it('should be able to create a new issue', () => {
// Here you will write the test
cy.get('[data-testid="icon:plus"]').click()

//Issue type
cy.get('[data-testid="select:type"]').click()
cy.get('[data-testid="select-option:Story"]').click()

//Short summary
cy.get('[name="title"]').type("Bigg error")

//Description of form
cy.get('.ql-editor.ql-blank').type("Bigg error with this isue")

//Reporter
cy.get('[data-testid="select:reporterId"]').click()
cy.get('[data-testid="select-option:Baby Yoda"]').click()

//Assignees
cy.get('[data-testid="select:userIds"]').click()
cy.get('[data-testid="select-option:Pickle Rick"]').click()

//Priority
cy.get('[data-testid="select:priority"]').click()
cy.get('[data-testid="select-option:Highest"]').click()

//submit
cy.get('[type="submit"]').click()
cy.contains('Issue has been successfully created.').should('be.visible')

})





})
21 changes: 21 additions & 0 deletions cypress/integration/IteraCourse/task2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/// <reference types="Cypress" />

describe('jira clone', () => {
before(() =>{
cy.visit('https://jira-clone.mad.itera.no/project/board')

})


it('should be able to create a new issue', () => {
cy.createIssue('Not big issue')
cy.contains('Not big issue').click()

cy.contains('Highest').click()
cy.contains('Lowest').click()

//cy.get('[data-testid="modal:issue-details"]').click('topRight')
cy.get('.sc-bdVaJa.fuyACr').click()

})
})
44 changes: 44 additions & 0 deletions cypress/integration/IteraCourse/task3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/// <reference types="cypress" />

describe('jira clone', () => {
before(() =>{
cy.visit('https://jira-clone.mad.itera.no/project/board')

})

beforeEach(() => {
// create issue
cy.createIssue('Not big issue')

})

afterEach(() => {
// delete issue
// cy.deleteIssue('Not big issue')
cy.contains('Not big issue').click()
//Priority
cy.get('[data-testid="icon:trash"]').click()
cy.contains('Delete issue').click()
})

it('should be able to create comment', () => {
// create comment
cy.createComment('Not big issue', 'this is a comment')
})

it('should be able to delete comment', () => {
// create comment
cy.createComment('Not big issue', 'this is a second comment')

// delete comment
//cy.deleteComment('Not big issue', 'this is a comment')
cy.contains('Not big issue').click()
cy.contains('this is a comment').parent().contains('Delete').click()
cy.contains('Delete comment').click()
})

it('should be able to edit comment', () => {
// create comment
// edit comment
})
})
Loading

0 comments on commit 6f8e794

Please sign in to comment.