diff --git a/cypress/integration/basic/window.spec.ts b/cypress/integration/basic/window.spec.ts index ffa6f39..f722412 100644 --- a/cypress/integration/basic/window.spec.ts +++ b/cypress/integration/basic/window.spec.ts @@ -3,18 +3,15 @@ context('Window', () => { cy.visit('http://localhost:3000'); }); - it('cy.window() - get the global window object', () => { - // https://on.cypress.io/window + it('get the global window object', () => { cy.window().should('have.property', 'top'); }); - it('cy.document() - get the document object', () => { - // https://on.cypress.io/document + it('get the document object', () => { cy.document().should('have.property', 'charset').and('eq', 'UTF-8'); }); - it('cy.title() - get the title', () => { - // https://on.cypress.io/title + it('get the title', () => { cy.title().should('include', 'bits-to-atoms'); }); }); diff --git a/cypress/integration/market/market.spec.ts b/cypress/integration/market/market.spec.ts new file mode 100644 index 0000000..9cc3d05 --- /dev/null +++ b/cypress/integration/market/market.spec.ts @@ -0,0 +1,18 @@ +context('Market', () => { + beforeEach(() => { + cy.visit('http://localhost:3000'); + }); + + it('get the first build request summary', () => { + cy.wait(100); + cy.contains('Build Request'); + }); + + it('bid on first build request summary', () => { + // Act + cy.wait(100); + cy.contains('Build Request').parent().find('button').click(); + cy.wait(100); + }); + +});