2021-02-12 16:09:11 -08:00
|
|
|
// Give network requests a bit of breathing room! (A bit more, because this
|
|
|
|
// page has a lot of data!)
|
|
|
|
const networkTimeout = { timeout: 10000 };
|
|
|
|
|
|
|
|
describe("ItemZonesInfo", () => {
|
|
|
|
it("shows simple zone data for an all-species Background", () => {
|
|
|
|
cy.visit("/items/37375");
|
|
|
|
cy.get("[data-test-id='item-zones-info']", networkTimeout).should(
|
|
|
|
"have.text",
|
2021-02-12 18:15:45 -08:00
|
|
|
"Occupies: Background" + "Restricts: N/A"
|
2021-02-12 16:09:11 -08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("shows simple zone data for a species-specific Hat", () => {
|
|
|
|
cy.visit("/items/34985");
|
|
|
|
cy.get("[data-test-id='item-zones-info']", networkTimeout).should(
|
|
|
|
"have.text",
|
2021-02-12 18:15:45 -08:00
|
|
|
"Occupies: Hat" + "Restricts: N/A"
|
2021-02-12 16:09:11 -08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("shows distinct zone data for an all-species in-hand item", () => {
|
|
|
|
cy.visit("/items/43397");
|
|
|
|
cy.get("[data-test-id='item-zones-info']", networkTimeout).should(
|
|
|
|
"have.text",
|
2021-02-12 18:15:45 -08:00
|
|
|
"Occupies: Right-hand Item (52 species)" +
|
|
|
|
"Left-hand Item (2 species)" +
|
|
|
|
"Restricts: N/A"
|
2021-02-12 16:09:11 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
cy.contains("(52 species)").focus();
|
|
|
|
cy.contains(
|
|
|
|
"Acara, Aisha, Blumaroo, Bori, Bruce, Buzz, Chia, Chomby, Cybunny, Draik, Elephante, Eyrie, Flotsam, Gelert, Gnorbu, Grarrl, Grundo, Hissi, Ixi, Jetsam, Jubjub, Kacheek, Kau, Kiko, Koi, Korbat, Kougra, Krawk, Kyrii, Lupe, Lutari, Meerca, Moehog, Mynci, Nimmo, Ogrin, Peophin, Poogle, Pteri, Quiggle, Ruki, Scorchio, Shoyru, Skeith, Techo, Tonu, Uni, Usul, Wocky, Xweetok, Yurble, Zafara"
|
|
|
|
).should("exist");
|
|
|
|
|
|
|
|
cy.contains("(2 species)").focus();
|
|
|
|
cy.contains("Lenny, Tuskaninny").should("exist");
|
|
|
|
});
|
|
|
|
|
|
|
|
it("shows simple zone data for a Mutant-only Dress", () => {
|
|
|
|
cy.visit("/items/70564");
|
|
|
|
cy.get("[data-test-id='item-zones-info']", networkTimeout).should(
|
|
|
|
"have.text",
|
2021-02-12 18:15:45 -08:00
|
|
|
"Occupies: Shirt/Dress" + "Restricts: N/A"
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("shows zone restrict data for a simple hood", () => {
|
|
|
|
cy.visit("/items/38911");
|
|
|
|
cy.get("[data-test-id='item-zones-info']", networkTimeout).should(
|
|
|
|
"have.text",
|
|
|
|
"Occupies: Hat" + "Restricts: Hair Front" + "Head Transient Biology"
|
2021-02-12 16:09:11 -08:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|