summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-02-15 09:44:46 +0100
committeranderklander <anderklander@gmail.com>2018-02-15 16:02:03 +0100
commit1eab34a1cbd2480a4afc9bb9b6d8db810c8342be (patch)
tree92de24f6eb4003722525346fe212d65608b2dbfa /test
parentd145ab23311da29705498d3e92d26a6f5ea461c1 (diff)
downloadmullvadvpn-1eab34a1cbd2480a4afc9bb9b6d8db810c8342be.tar.xz
mullvadvpn-1eab34a1cbd2480a4afc9bb9b6d8db810c8342be.zip
Fix tests
Diffstat (limited to 'test')
-rw-r--r--test/components/Settings.spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js
index d8d30ab4df..8f0e4a73d4 100644
--- a/test/components/Settings.spec.js
+++ b/test/components/Settings.spec.js
@@ -108,14 +108,14 @@ describe('components/Settings', () => {
it('should show out-of-time message for unpaid account', () => {
const props = makeProps(unpaidAccountState, settingsState);
- const component = getComponent(render(props), 'settings__account_paid_until_label');
- expect(component.prop('subtext')).to.equal('OUT OF TIME');
+ const component = getComponent(render(props), 'settings__account_paid_until_subtext');
+ expect(component.children().text()).to.equal('OUT OF TIME');
});
it('should hide out-of-time message for paid account', () => {
const props = makeProps(loggedInAccountState, settingsState);
- const component = getComponent(render(props), 'settings__account_paid_until_label');
- expect(component.prop('subtext')).not.to.equal('OUT OF TIME');
+ const component = getComponent(render(props), 'settings__account_paid_until_subtext');
+ expect(component.children().text()).not.to.equal('OUT OF TIME');
});
it('should call close callback', (done) => {
@@ -138,7 +138,7 @@ describe('components/Settings', () => {
const props = makeProps(loggedInAccountState, settingsState, {
onViewAccount: () => done()
});
- const component = getComponent(render(props), 'settings__account_paid_until_label');
+ const component = getComponent(render(props), 'settings__account_paid_until_button');
click(component);
});