Skip to content

Commit

Permalink
test: "Unfix" tests for release
Browse files Browse the repository at this point in the history
Tests which fail on master will pass on release branch, because it's using stripes 7.1.0
  • Loading branch information
EthanFreestone committed Mar 2, 2022
1 parent c135a3b commit f9b54d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/InternalContactCard/tests/InternalContactCard-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ describe('InternalContactCard', () => {
});

it('renders a placeholder name', () => {
expect(interactor.name).to.have.string('stripes-components.noValue.noValueSet-');
expect(interactor.name).to.have.string('-'); // THIS WILL NEED CHANGING IN STRIPES 7.2.0
});

it('renders a placeholder phone number', () => {
expect(interactor.phone).to.equal('stripes-components.noValue.noValueSet-');
expect(interactor.phone).to.equal('-');
});

it('renders a placeholder email address', () => {
expect(interactor.email).to.equal('stripes-components.noValue.noValueSet-');
expect(interactor.email).to.equal('-');
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ describe('InternalContactsFieldArray', () => {
});

it('renders a placeholder name', () => {
expect(interactor.contacts(2).userName).to.have.string('No value set-');
expect(interactor.contacts(2).userName).to.have.string('-'); // THIS WILL NEED CHANGING IN STRIPES 7.2.0
});

it('renders a placeholder phone', () => {
expect(interactor.contacts(2).userPhone).to.equal('No value set-');
expect(interactor.contacts(2).userPhone).to.equal('-');
});

it('renders a placeholder email', () => {
expect(interactor.contacts(2).userEmail).to.equal('No value set-');
expect(interactor.contacts(2).userEmail).to.equal('-');
});
});

Expand Down

0 comments on commit f9b54d3

Please sign in to comment.