refactor(background): export background as component closes #235
This commit is contained in:
@@ -10,9 +10,9 @@ describe('Basic Graph Rendering', () => {
|
||||
});
|
||||
|
||||
it('renders a grid', () => {
|
||||
cy.get('.react-flow__grid');
|
||||
cy.get('.react-flow__background');
|
||||
|
||||
const gridStroke = Cypress.$('.react-flow__grid path').attr('stroke');
|
||||
const gridStroke = Cypress.$('.react-flow__background path').attr('stroke');
|
||||
expect(gridStroke).to.equal('#eee');
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Rich Graph Rendering', () => {
|
||||
describe('Overview Graph Rendering', () => {
|
||||
it('renders a graph', () => {
|
||||
cy.visit('/');
|
||||
|
||||
@@ -9,9 +9,9 @@ describe('Rich Graph Rendering', () => {
|
||||
});
|
||||
|
||||
it('renders a grid', () => {
|
||||
cy.get('.react-flow__grid');
|
||||
cy.get('.react-flow__background');
|
||||
|
||||
const gridStroke = Cypress.$('.react-flow__grid path').attr('fill');
|
||||
const gridStroke = Cypress.$('.react-flow__background path').attr('fill');
|
||||
expect(gridStroke).to.equal('#888');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user