forked from deptagency/algomart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes to themeContext and enable themes in production themeContext needed to wait until there's a window before initializing the theme. Also added a listener to OS theme changes when using OS theme so it updates without refresh. * style fixes WIP * fix select so it doesn't show a bunch of whitespace to the left if an icon isn't provided * fix select z-indexing and darkmode styles * align select content to left * Add Theme select to My Profile Also write a new Select component with a more standard API. * jk about fullWidth * nope * add support for uncontrolled use of Select * make it possible to log out on mobile * remove unused import * Update card-form.tsx * fix dark mode styles * update BankAccountForm countries Select input * address feedback * make this less annoying on screen readers * remove dead code * clean up dead code * don't blow up when no options are provided. * Select refactor + a bunch of cleanup in the purchase flows. * lord this is so much better * fix redirect after signup * Use PaymentProvider & context (deptagency#404) * Actually use PaymentProvider and context and start removing prop drilling * keep chipping away * getting close * so close * hoooooo boy * time for finishing touches * add missing prop and make file name consistent with export * urlFor * remove props that are already defaulted * urlFor * one more * same thing * fix redeem styles * remove unused import * make sure we're comparing the same keys * remove unused import * cms seed: stagger pack release times by 1 minute for sortability * cypress tests for releases page * clean up redundant logic * rename select-input -> select * rename key -> value in SelectOptions * simplify text-input and currency-input small variant styles * Delete button-group.tsx
- Loading branch information
Showing
55 changed files
with
583 additions
and
1,246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { stringify } from 'query-string' | ||
|
||
describe('releases page', () => { | ||
it('should render', () => { | ||
cy.visit('/releases') | ||
cy.location('pathname').should('eq', '/releases') | ||
cy.get('input[value="Newest"]').should('exist') | ||
cy.get('[href="/releases/pack-7"]').should('be.visible') | ||
}) | ||
it('should respect filter query params', () => { | ||
const query = { | ||
priceHigh: '45600', | ||
priceLow: '123', | ||
sortMode: 'Oldest', | ||
showAuction: 'true', | ||
showPurchase: 'false', | ||
showAuctionUpcoming: 'false', | ||
showAuctionActive: 'false', | ||
showAuctionExpired: 'false', | ||
showAuctionReserveMet: 'true', | ||
} | ||
cy.visit(`/releases?${stringify(query)}`) | ||
cy.location('pathname').should('eq', '/releases') | ||
cy.get('input[value="$1.23"]').should('exist') | ||
cy.get('input[value="$456.00"]').should('exist') | ||
cy.get('input[value="Oldest"]').should('exist') | ||
cy.get('button[aria-checked="false"]').contains('Purchase').should('exist') | ||
cy.get('button[aria-checked="true"]').contains('Auction').should('exist') | ||
cy.get('button[aria-checked="false"]') | ||
.contains('Starting soon') | ||
.should('exist') | ||
cy.get('button[aria-checked="false"]') | ||
.contains('Auction is live') | ||
.should('exist') | ||
cy.get('button[aria-checked="false"]').contains('Has ended').should('exist') | ||
cy.get('button[aria-checked="true"]') | ||
.contains('Reserve met') | ||
.should('exist') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.