@@ -57,12 +57,12 @@ module('Acceptance | operator mode tests', function (hooks) {
57
57
setupOnSave (hooks );
58
58
let { setExpiresInSec, createAndJoinRoom, simulateRemoteMessage } =
59
59
setupMockMatrix (hooks , {
60
- loggedInAs: ' @testuser:staging ' ,
60
+ loggedInAs: ' @testuser:localhost ' ,
61
61
activeRealms: [testRealmURL ],
62
62
});
63
63
64
64
hooks .beforeEach (async function () {
65
- matrixRoomId = createAndJoinRoom (' @testuser:staging ' , ' room-test' );
65
+ matrixRoomId = createAndJoinRoom (' @testuser:localhost ' , ' room-test' );
66
66
setupUserSubscription (matrixRoomId );
67
67
68
68
setExpiresInSec (60 * 60 );
@@ -877,7 +877,7 @@ module('Acceptance | operator mode tests', function (hooks) {
877
877
type: ' user' ,
878
878
id: 1 ,
879
879
attributes: {
880
- matrixUserId: ' @testuser:staging ' ,
880
+ matrixUserId: ' @testuser:localhost ' ,
881
881
stripeCustomerId: ' stripe-id-1' ,
882
882
creditsAvailableInPlanAllowance: 1000 ,
883
883
creditsIncludedInPlanAllowance: 1000 ,
@@ -949,7 +949,7 @@ module('Acceptance | operator mode tests', function (hooks) {
949
949
headers: {
950
950
Authorization: createJWT (
951
951
{
952
- user: ' @testuser:staging ' ,
952
+ user: ' @testuser:localhost ' ,
953
953
sessionRoom: matrixRoomId ,
954
954
},
955
955
' 1d' ,
@@ -980,14 +980,14 @@ module('Acceptance | operator mode tests', function (hooks) {
980
980
assert .dom (' [data-test-profile-popover]' ).doesNotExist ();
981
981
assert .dom (' [data-test-settings-modal]' ).exists ();
982
982
983
- assert .dom (' [data-test-profile-icon]' ).hasText (' T' ); // "T", from first letter of: @testuser:staging
983
+ assert .dom (' [data-test-profile-icon]' ).hasText (' T' ); // "T", from first letter of: @testuser:localhost
984
984
assert .dom (' [data-test-profile-display-name]' ).hasText (' ' ); // No display name set yet
985
985
assert
986
986
.dom (' [data-test-profile-icon]' )
987
987
.hasStyle ({ backgroundColor: ' rgb(34, 221, 152)' });
988
988
assert
989
989
.dom (' [data-test-profile-icon-handle]' )
990
- .hasText (' @testuser:staging ' );
990
+ .hasText (' @testuser:localhost ' );
991
991
992
992
await fillIn (' [data-test-display-name-field]' , ' ' );
993
993
assert
@@ -1091,7 +1091,7 @@ module('Acceptance | operator mode tests', function (hooks) {
1091
1091
.hasAttribute (
1092
1092
' href' ,
1093
1093
` https://extra-credits-payment-link-1250?client_reference_id=${encodeWebSafeBase64 (
1094
- ' @testuser:staging ' ,
1094
+ ' @testuser:localhost ' ,
1095
1095
)} ` ,
1096
1096
);
1097
1097
assert .dom (' [data-test-pay-button="0"]' ).hasAttribute (' target' , ' _blank' );
@@ -1100,7 +1100,7 @@ module('Acceptance | operator mode tests', function (hooks) {
1100
1100
.hasAttribute (
1101
1101
' href' ,
1102
1102
` https://extra-credits-payment-link-15000?client_reference_id=${encodeWebSafeBase64 (
1103
- ' @testuser:staging ' ,
1103
+ ' @testuser:localhost ' ,
1104
1104
)} ` ,
1105
1105
);
1106
1106
assert .dom (' [data-test-pay-button="1"]' ).hasAttribute (' target' , ' _blank' );
@@ -1109,7 +1109,7 @@ module('Acceptance | operator mode tests', function (hooks) {
1109
1109
.hasAttribute (
1110
1110
' href' ,
1111
1111
` https://extra-credits-payment-link-80000?client_reference_id=${encodeWebSafeBase64 (
1112
- ' @testuser:staging ' ,
1112
+ ' @testuser:localhost ' ,
1113
1113
)} ` ,
1114
1114
);
1115
1115
assert .dom (' [data-test-pay-button="2"]' ).hasAttribute (' target' , ' _blank' );
0 commit comments