Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SimplyBudgetSharedTests/Data/ExpenseCategoryItemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void SetIgnoreBudget_WithNull_Throws()
{
var item = new ExpenseCategoryItem();

var ex = Assert.ThrowsException<ArgumentNullException>(() => item.IgnoreBudget = null);
var ex = Assert.ThrowsExactly<ArgumentNullException>(() => item.IgnoreBudget = null);
Assert.AreEqual("value", ex.ParamName);
}

Expand All @@ -75,7 +75,7 @@ public void SetIgnoreBudget_True_Throws()
{
var item = new ExpenseCategoryItem();

var ex = Assert.ThrowsException<ArgumentNullException>(() => item.IgnoreBudget = null);
var ex = Assert.ThrowsExactly<ArgumentNullException>(() => item.IgnoreBudget = null);
Assert.AreEqual("value", ex.ParamName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function AddTransactionDialog({ open, onClose, categories, onSucc
<DialogActions>
<Button onClick={handleClose}>Cancel</Button>
<Button variant="contained" onClick={handleSubmit} disabled={submitting}>
{submitting ? <CircularProgress size={20} /> : 'Save'}
{submitting ? <CircularProgress size={20} aria-label="Saving transaction" /> : 'Save'}
</Button>
</DialogActions>
</Dialog>
Expand Down
2 changes: 1 addition & 1 deletion SimplyBudgetWeb.Web/src/pages/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function Accounts() {
</Box>

{loading ? (
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress /></Box>
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress aria-label="Loading accounts" /></Box>
) : (
<List>
{accounts.map(account => (
Expand Down
2 changes: 1 addition & 1 deletion SimplyBudgetWeb.Web/src/pages/Budget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function Budget() {

{loading ? (
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}>
<CircularProgress />
<CircularProgress aria-label="Loading budget" />
</Box>
) : (
<Box>
Expand Down
2 changes: 1 addition & 1 deletion SimplyBudgetWeb.Web/src/pages/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function History() {
</Paper>

{loading ? (
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress /></Box>
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress aria-label="Loading history" /></Box>
) : (
<List>
{items.length === 0 && (
Expand Down
4 changes: 2 additions & 2 deletions SimplyBudgetWeb.Web/src/pages/Import.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Import() {
sx={{ mb: 2 }}
/>
<Button variant="contained" onClick={handleParse} disabled={loading || !csvText.trim()}>
{loading ? <CircularProgress size={20} /> : 'Parse'}
{loading ? <CircularProgress size={20} aria-label="Parsing import data" /> : 'Parse'}
</Button>
</Paper>

Expand Down Expand Up @@ -133,7 +133,7 @@ export default function Import() {
</Table>
</Paper>
<Button variant="contained" onClick={handleImport} disabled={submitting}>
{submitting ? <CircularProgress size={20} /> : 'Save Import'}
{submitting ? <CircularProgress size={20} aria-label="Saving import" /> : 'Save Import'}
</Button>
</>
)}
Expand Down
2 changes: 1 addition & 1 deletion SimplyBudgetWeb.Web/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function Settings() {
</Box>

{loading ? (
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress /></Box>
<Box sx={{ display: 'flex', justifyContent: 'center', p: 4 }}><CircularProgress aria-label="Loading import rules" /></Box>
) : (
<List>
{rules.length === 0 && <ListItem><ListItemText primary="No rules defined." /></ListItem>}
Expand Down
Loading