Merge commit 'f16f8b51b863d3fcadd17753004adbf8962ead01' into glitch-soc/merge-upstream

Conflicts:
- `yarn.lock`:
  Upstream updated a dependency adjacent to one that is only in glitch-soc.
  Updated as upstream did.
This commit is contained in:
Claire committed 2025-08-19 18:46:12 +02:00
commit 71cee3e472
39 files changed
+278 -152

No files matched your search

+7 -2
View File
@@ -130,14 +130,19 @@ RSpec.describe 'Settings applications page' do
describe 'Regenerating an app token' do
it 'updates the app token' do
visit settings_application_path(application)
expect { visit settings_application_path(application) }
.to change(user_application_token, :first).from(be_nil).to(be_present)
expect { regenerate_token }
.to(change { user.token_for_app(application) })
.to(change { user_application_token.first.token })
expect(page)
.to have_content(I18n.t('applications.token_regenerated'))
end
def user_application_token
Doorkeeper::AccessToken.where(application:).where(resource_owner_id: user)
end
def regenerate_token
click_on I18n.t('applications.regenerate_token')
end